fix crash if no releated pages found

This commit is contained in:
Tim Moritz 2024-01-12 11:33:47 +01:00
parent 7995d862bc
commit 1c32692b2a

View file

@ -595,7 +595,9 @@ class Page {
// For each tag get the list of related pages
foreach ($pageTags as $tagKey=>$tagName) {
$pagesRelated = $tags->getList($tagKey, 1, -1);
if(is_array($pagesRelated)) {
$list = array_merge($list, $pagesRelated);
}
}
// Remove duplicates