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/admins/functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'admin/admins/functions.php') diff --git a/admin/admins/functions.php b/admin/admins/functions.php index 8987322..563b507 100644 --- a/admin/admins/functions.php +++ b/admin/admins/functions.php @@ -44,10 +44,7 @@ { global $db; $result = $db->Query("SELECT `user_id`, `username`, `level` FROM `bayonet_users` ORDER BY `level` DESC, `username` ASC"); - while(($rows = $db->fetch($result))!=false) - { - $admins[] = $rows; - } + $admins = $db->fetch($result); $num = 1; OpenTable("300px"); -- cgit