From d526decc4884710ae7fafe7aa5171e7f59b24292 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sun, 27 Dec 2009 15:44:57 +0000 Subject: MySQL -> MySQLi Fixed memory leaks after Fetching arrays Removed all while loops that interfaced with $db->Fetch() Rewrote RSS module Fixed syntax error in donations module Fixed link structure for news module Reverting to old page display method git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@402 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/download/index.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/download/index.php') diff --git a/modules/download/index.php b/modules/download/index.php index 300bd46..983b6f8 100644 --- a/modules/download/index.php +++ b/modules/download/index.php @@ -26,11 +26,7 @@ $download = NULL; $download_relative_path = "modules/" . basename(dirname(__FILE__)) . "/files/"; $download_absolute_path = dirname(__FILE__) . "/files/"; -$result = $db->Query("SELECT `file_id`, `name`, `description`, `filename` FROM `bayonet_downloads`"); -while(($row = $db->Fetch($result)) !== false) -{ - $download[] = $row; -} +$download = $db->Query("SELECT `file_id`, `name`, `description`, `filename` FROM `bayonet_downloads`"); OpenContent(); echo "
Downloads
"; @@ -62,4 +58,4 @@ echo ""; CloseContent(); -?> \ No newline at end of file +?> -- cgit