Skip to content

Commit 50b37d1

Browse files
add check on array
1 parent a77921a commit 50b37d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Config/Model/Config/Structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function getElementByConfigPath($path)
191191
{
192192
$allPaths = $this->getFieldPaths();
193193

194-
if (isset($allPaths[$path])) {
194+
if (isset($allPaths[$path]) && is_array($allPaths[$path])) {
195195
$path = array_shift($allPaths[$path]);
196196
}
197197

0 commit comments

Comments
 (0)