Skip to content

Commit

Permalink
Revert "fixed: get_from_array helper when map value null"
Browse files Browse the repository at this point in the history
This reverts commit 840a271.
  • Loading branch information
nahid committed Oct 17, 2019
1 parent e651bb5 commit e77a046
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions helpers/presento.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ function get_from_array($map, string $node)
$path = explode('.', $node);

foreach ($path as $val) {
if (!is_array($map)) return $map;

if (!array_key_exists($val, $map)) {
return null;
}
Expand Down

0 comments on commit e77a046

Please sign in to comment.