Skip to content

Commit

Permalink
Fix array helper
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnguyenhp committed Aug 20, 2021
1 parent feb813b commit 4094939
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion helpers/array_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function arrayToObject($array = array())
$countArray = count($array);
if ($countArray > 0) {
foreach ($array as $name => $value) {
$name = trim($name);
if (!empty($name)) {
$object->$name = arrayToObject($value);
}
Expand Down

0 comments on commit 4094939

Please sign in to comment.