Commit acaf0d1c authored by Alexander Butenko's avatar Alexander Butenko

Merge pull request #306 from oolso/master

bug fixed when using nestedJoin
parents df1b0b90 b83e8a27
......@@ -10,7 +10,7 @@
* @copyright Copyright (c) 2010
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
* @version 2.2
* @version 2.4
**/
class MysqliDb
{
......@@ -960,9 +960,14 @@ class MysqliDb
}
} else {
$x = array();
foreach ($row as $key => $val)
foreach ($row as $key => $val) {
if (is_array($val)) {
foreach ($val as $k => $v)
$x[$key][$k] = $v;
} else
$x[$key] = $val;
}
}
$this->count++;
array_push ($results, $x);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment