diff --git a/page.php b/page.php index 0a9a605..15dc794 100644 --- a/page.php +++ b/page.php @@ -14,7 +14,7 @@ $thematiqueColorSlug = $mainThematique->slug; post_parent !== 0 ? get_post($currentPage->post_parent) : null; - $grandParentPage = $parentPage->post_parent ? get_post($parentPage->post_parent) : null; + $grandParentPage = $parentPage && $parentPage->post_parent ? get_post($parentPage->post_parent) : null; ?>