bug: fix null pointer

Authored-by: H. C. Kruse <6594492+octfx@users.noreply.github.com>
This commit is contained in:
alistair3149 2021-03-04 16:50:42 -05:00 committed by GitHub
parent 705bce9a81
commit ae9ab0a8d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(