Skip to content

Commit 928011e

Browse files
authored
Merge pull request #3098 from sangnguyenplus/master
fix: Prevent error when PHP extension iconv not enabled.
2 parents 24c1243 + 52d03cf commit 928011e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryDataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ protected function showDebugger(array $output): array
863863
{
864864
$query_log = $this->getConnection()->getQueryLog();
865865
array_walk_recursive($query_log, function (&$item) {
866-
if (is_string($item)) {
866+
if (is_string($item) && extension_loaded('iconv')) {
867867
$item = iconv('iso-8859-1', 'utf-8', $item);
868868
}
869869
});

0 commit comments

Comments
 (0)