Skip to content

Commit

Permalink
Merge pull request #3098 from sangnguyenplus/master
Browse files Browse the repository at this point in the history
fix: Prevent error when PHP extension iconv not enabled.
  • Loading branch information
yajra authored Nov 25, 2023
2 parents 24c1243 + 52d03cf commit 928011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ protected function showDebugger(array $output): array
{
$query_log = $this->getConnection()->getQueryLog();
array_walk_recursive($query_log, function (&$item) {
if (is_string($item)) {
if (is_string($item) && extension_loaded('iconv')) {
$item = iconv('iso-8859-1', 'utf-8', $item);
}
});
Expand Down

0 comments on commit 928011e

Please sign in to comment.