Skip to content

Commit 28360fb

Browse files
author
Bless
committed
bug fixed when using nestedJoin
1 parent df1b0b9 commit 28360fb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

MysqliDb.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,13 @@ protected function _dynamicBindResults(mysqli_stmt $stmt)
960960
}
961961
} else {
962962
$x = array();
963-
foreach ($row as $key => $val)
964-
$x[$key] = $val;
963+
foreach ($row as $key => $val) {
964+
if (is_array($val)) {
965+
foreach ($val as $k => $v)
966+
$x[$key][$k] = $v;
967+
} else
968+
$x[$key] = $val;
969+
}
965970
}
966971
$this->count++;
967972
array_push ($results, $x);

0 commit comments

Comments
 (0)