From 114caa9b8c8ae47426c1a75afd7da9c3a5c28361 Mon Sep 17 00:00:00 2001 From: dignajar Date: Thu, 6 Oct 2016 10:18:38 -0300 Subject: [PATCH] Bug fixed, when there are not pages --- bl-kernel/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index 057b42b2..5a492878 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -237,7 +237,9 @@ function buildAllPages() } } - $parents = $pagesParentsPublished[NO_PARENT_CHAR]; + if( isset($pagesParentsPublished[NO_PARENT_CHAR]) ) { + $parents = $pagesParentsPublished[NO_PARENT_CHAR]; + } return $pages; } \ No newline at end of file