hotfix for undefined variable
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 24 Sep 2004 10:02:48 +0000 (10:02 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Fri, 24 Sep 2004 10:02:48 +0000 (10:02 +0000)
includes/MessageCache.php

index fed47f0..20ee91e 100755 (executable)
@@ -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' );