Skip to content

Commit

Permalink
Merge #16354 - Fixes #14698 - Database named as 'New' causes PHP fata…
Browse files Browse the repository at this point in the history
…l error

Pull-request: #16354
Fixes: #14698

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Sep 15, 2020
2 parents 11a7ffb + de168ed commit 62b9d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Navigation/Nodes/Node.php
Expand Up @@ -168,7 +168,7 @@ public function getChild($name, $realName = false)
}
} else {
foreach ($this->children as $child) {
if ($child->name == $name) {
if ($child->name == $name && $child->isNew === false) {
return $child;
}
}
Expand Down

0 comments on commit 62b9d8c

Please sign in to comment.