mirror of
https://github.com/getgrav/grav.git
synced 2026-02-27 17:11:27 +01:00
Fixed assert
This commit is contained in:
@@ -118,7 +118,7 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
||||
$element = $element->getTranslation(ltrim($params, '.'));
|
||||
}
|
||||
|
||||
\assert($element instanceof PageObject);
|
||||
\assert(null === $element || $element instanceof PageObject);
|
||||
|
||||
return $element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user