From ae9ab0a8d18f26e0117864b83de5f201be53157b Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Thu, 4 Mar 2021 16:50:42 -0500 Subject: [PATCH] bug: fix null pointer Authored-by: H. C. Kruse <6594492+octfx@users.noreply.github.com> --- includes/SkinCitizen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinCitizen.php b/includes/SkinCitizen.php index 62243065..1abad080 100644 --- a/includes/SkinCitizen.php +++ b/includes/SkinCitizen.php @@ -64,7 +64,7 @@ class SkinCitizen extends SkinMustache { $skinTheme->setSkinTheme( $options ); // Only load in content pages - if ( $title->isContentPage() ) { + if ( $title !== null && $title->isContentPage() ) { // Load Citizen collapsible sections modules if enabled if ( $this->getConfigValue( 'CitizenEnableCollapsibleSections' ) === true ) { $options['scripts'] = array_merge(