Merge pull request #1554 from gaincoder/bug-related
This commit is contained in:
commit
4a645173f7
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue