summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2015-12-17 13:21:49 -0500
committerMalf Furious <m@lfurio.us>2015-12-17 13:21:49 -0500
commit0f9b65d812b601c5e047838b07b96098cbe8ad35 (patch)
treefdb8576272b8633cdd15fb462bb450b57fb9812c
parent886bc202b8debe29f0c3e70b027ad3202e78c263 (diff)
downloadscrott-0f9b65d812b601c5e047838b07b96098cbe8ad35.tar.gz
scrott-0f9b65d812b601c5e047838b07b96098cbe8ad35.zip
* Bug fix in Mysql support class -- misuse of Mysql result object and its member function fetch_assoc
-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;
}