From ed943b32335933f369d9aa459689e986c10421ae Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Mon, 28 Dec 2009 00:21:11 +0000 Subject: (OC) fixed some bugs in the admin panel caused by the new sql wrapper. *need to figure out the avatar for smflogin block. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@403 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- includes/sql.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/sql.class.php') diff --git a/includes/sql.class.php b/includes/sql.class.php index 3b93e2a..2bdb996 100644 --- a/includes/sql.class.php +++ b/includes/sql.class.php @@ -116,8 +116,8 @@ class Bayonet_SQL decho("Fetching single row"); - while ($row = mysqli_fetch_row($p_result)) { - $result[] = $row; + while ($row = mysqli_fetch_assoc($p_result)) { + $result = $row; } $this->Free($p_result); -- cgit