From 0f9b65d812b601c5e047838b07b96098cbe8ad35 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 17 Dec 2015 13:21:49 -0500 Subject: * Bug fix in Mysql support class -- misuse of Mysql result object and its member function fetch_assoc --- app/class/mysql.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class') diff --git a/app/class/mysql.class.php b/app/class/mysql.class.php index b08257f..317468c 100644 --- a/app/class/mysql.class.php +++ b/app/class/mysql.class.php @@ -45,8 +45,8 @@ class Mysql implements Database if ($res === true || $res === false) return $arr; - foreach ($res as $r) - $arr[] = $r->fetch_assoc(); + while ($r = $res->fetch_assoc()) + $arr[] = $r; return $arr; } -- cgit v1.2.3