summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/class/mysql.class.php4
1 files changed, 2 insertions, 2 deletions
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;
}