From 1c32692b2a83047165e5b422e5c5e3ed32214cbb Mon Sep 17 00:00:00 2001 From: Tim Moritz Date: Fri, 12 Jan 2024 11:33:47 +0100 Subject: [PATCH] fix crash if no releated pages found --- bl-kernel/pagex.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bl-kernel/pagex.class.php b/bl-kernel/pagex.class.php index 670201e5..b6183ac8 100644 --- a/bl-kernel/pagex.class.php +++ b/bl-kernel/pagex.class.php @@ -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