From 1940d26e14215d4821c2105e5d4442cad6819320 Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Wed, 15 Jul 2009 18:15:40 +0000 Subject: [PATCH] added some isset() calls to avoid Notice: Undefined property errors --- skins/MonoBook.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/skins/MonoBook.php b/skins/MonoBook.php index c1828692a7..195c40433b 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -48,10 +48,10 @@ class SkinMonoBook extends SkinTemplate { //@@todo we can move this to the parent once we update all skins - if( $this->pagecss ) + if( isset($this->pagecss) ) $out->addInlineStyle( $this->pagecss ); - if( $this->usercss ) + if( isset($this->usercss) ) $out->addInlineStyle( $this->usercss ); } @@ -60,13 +60,13 @@ class SkinMonoBook extends SkinTemplate { $out->addScriptFile( 'wikibits.js' ); //@@todo can move to parent once we update all skins (to not include things twice - if( $this->jsvarurl ) + if( isset($this->jsvarurl) ) $out->addScriptFile( $this->jsvarurl ); - if( $this->userjs ) + if( isset($this->userjs) ) $out->addScriptFile( $this->userjs ); - if( $this->userjsprev ) + if( isset($this->userjsprev) ) $out->addInlineScript( $this->userjsprev ); } } @@ -273,23 +273,23 @@ HTML