From: Magnus Manske Date: Fri, 24 Sep 2004 10:02:48 +0000 (+0000) Subject: hotfix for undefined variable X-Git-Tag: 1.5.0alpha1~1827 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=fde2d0ba2ab4215c482309cd50ac6e55d7d6a988;p=lhc%2Fweb%2Fwiklou.git hotfix for undefined variable --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index fed47f0440..20ee91ec42 100755 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -37,7 +37,7 @@ class MessageCache $this->mMemcKey = $memcPrefix.':messages'; $this->mKeys = false; # initialised on demand $this->mInitialised = true; - $this->mIsForContent = $forContent; + if ( isset ( $forContent ) ) $this->mIsForContent = $forContent; wfProfileIn( $fname.'-parseropt' ); $this->mParserOptions = ParserOptions::newFromUser( $u=NULL ); wfProfileOut( $fname.'-parseropt' );