Skip to content

Commit e77a046

Browse files
committed
Revert "fixed: get_from_array helper when map value null"
This reverts commit 840a271.
1 parent e651bb5 commit e77a046

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

helpers/presento.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ function get_from_array($map, string $node)
3838
$path = explode('.', $node);
3939

4040
foreach ($path as $val) {
41-
if (!is_array($map)) return $map;
42-
4341
if (!array_key_exists($val, $map)) {
4442
return null;
4543
}

0 commit comments

Comments
 (0)