We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df1b0b9 + b83e8a2 commit acaf0d1Copy full SHA for acaf0d1
MysqliDb.php
@@ -10,7 +10,7 @@
10
* @copyright Copyright (c) 2010
11
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
12
* @link http://github.com/joshcam/PHP-MySQLi-Database-Class
13
- * @version 2.2
+ * @version 2.4
14
**/
15
class MysqliDb
16
{
@@ -960,8 +960,13 @@ protected function _dynamicBindResults(mysqli_stmt $stmt)
960
}
961
} else {
962
$x = array();
963
- foreach ($row as $key => $val)
964
- $x[$key] = $val;
+ foreach ($row as $key => $val) {
+ if (is_array($val)) {
965
+ foreach ($val as $k => $v)
966
+ $x[$key][$k] = $v;
967
+ } else
968
+ $x[$key] = $val;
969
+ }
970
971
$this->count++;
972
array_push ($results, $x);
0 commit comments