Merge pull request #1554 from gaincoder/bug-related

This commit is contained in:
Diego Najar 2024-01-13 16:03:38 -03:00 committed by GitHub
commit 4a645173f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
$list = array_merge($list, $pagesRelated);
if(is_array($pagesRelated)) {
$list = array_merge($list, $pagesRelated);
}
}
// Remove duplicates