fix crash if no releated pages found
This commit is contained in:
parent
7995d862bc
commit
1c32692b2a
1 changed files with 3 additions and 1 deletions
|
@ -595,7 +595,9 @@ class Page {
|
||||||
// For each tag get the list of related pages
|
// For each tag get the list of related pages
|
||||||
foreach ($pageTags as $tagKey=>$tagName) {
|
foreach ($pageTags as $tagKey=>$tagName) {
|
||||||
$pagesRelated = $tags->getList($tagKey, 1, -1);
|
$pagesRelated = $tags->getList($tagKey, 1, -1);
|
||||||
$list = array_merge($list, $pagesRelated);
|
if(is_array($pagesRelated)) {
|
||||||
|
$list = array_merge($list, $pagesRelated);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove duplicates
|
// Remove duplicates
|
||||||
|
|
Loading…
Reference in a new issue