Skip to content

Commit 9ba19cd

Browse files
authored
Merge pull request #2642 from artzavod/patch
Query with subqueries exception fix.
2 parents b00f25b + ec8b1d4 commit 9ba19cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/QueryDataTable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,9 @@ protected function showDebugger(array $output)
767767
{
768768
$query_log = $this->connection->getQueryLog();
769769
array_walk_recursive($query_log, function (&$item) {
770-
$item = utf8_encode($item);
770+
if (is_string($item)) {
771+
$item = utf8_encode($item);
772+
}
771773
});
772774

773775
$output['queries'] = $query_log;

0 commit comments

Comments
 (0)