Skip to content

Commit

Permalink
Using is_scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpfc committed May 1, 2023
1 parent 84a89ad commit 5a977fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Helpers/array_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function _array_attach_indexed_value(array $result, array $row, array $indexes,

$value = dot_array_search($index, $row);

if (is_array($value) || is_object($value) || $value === null) {
if (! is_scalar($value)) {
$value = '';
}

Expand Down

0 comments on commit 5a977fc

Please sign in to comment.