diff options
Diffstat (limited to 'modules/download')
-rw-r--r-- | modules/download/index.php | 8 |
1 files changed, 2 insertions, 6 deletions
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 "<div class=\"contentHeading\">Downloads</div>";
@@ -62,4 +58,4 @@ echo "</div>"; CloseContent();
-?>
\ No newline at end of file +?>
|