mirror of
https://github.com/getgrav/grav.git
synced 2026-04-14 16:47:35 +02: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