diff options
author | Malf Furious <m@lfurio.us> | 2015-12-17 13:21:49 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2015-12-17 13:21:49 -0500 |
commit | 0f9b65d812b601c5e047838b07b96098cbe8ad35 (patch) | |
tree | fdb8576272b8633cdd15fb462bb450b57fb9812c /app/class/mysql.class.php | |
parent | 886bc202b8debe29f0c3e70b027ad3202e78c263 (diff) | |
download | scrott-0f9b65d812b601c5e047838b07b96098cbe8ad35.tar.gz scrott-0f9b65d812b601c5e047838b07b96098cbe8ad35.zip |
* Bug fix in Mysql support class -- misuse of Mysql result object and its member function fetch_assoc
Diffstat (limited to '')
-rw-r--r-- | app/class/mysql.class.php | 4 |
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; } |