Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: function array_group_by #7438

Merged
merged 12 commits into from
May 14, 2023
Prev Previous commit
Using is_scalar
rumpfc committed May 1, 2023
commit 5a977fcbab02d0424d4552ad4614ffa6303c60e3
2 changes: 1 addition & 1 deletion system/Helpers/array_helper.php
Original file line number Diff line number Diff line change
@@ -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 = '';
}