From: Michael Dale Date: Wed, 15 Jul 2009 18:15:40 +0000 (+0000) Subject: added some isset() calls to avoid Notice: Undefined property errors X-Git-Tag: 1.31.0-rc.0~40919 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=1940d26e14215d4821c2105e5d4442cad6819320;p=lhc%2Fweb%2Fwiklou.git added some isset() calls to avoid Notice: Undefined property errors --- 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