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 --- admin/announcements/functions.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'admin/announcements') diff --git a/admin/announcements/functions.php b/admin/announcements/functions.php index 2e55125..917e342 100644 --- a/admin/announcements/functions.php +++ b/admin/announcements/functions.php @@ -52,11 +52,9 @@ function EditAnnouncements() //Grab the page from the database according to the $article_id passed to the function. $result = $db->Query("SELECT title,text FROM bayonet_announcements WHERE announcement_id = 0"); - while(($row = $db->Fetch($result))!=false) - { - //We only want one row, so we don't have to $article[]... No foreach necessary. - $announcement = $row; - } + /** FIXME - this probably broke. */ + $announcement = $db->Fetch($result); + ?>
-- cgit