correcting for what was probably an odd one-off error
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 08:23:13 +0000 (08:23 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Oct 2004 08:23:13 +0000 (08:23 +0000)
includes/ParserCache.php

index 23349a8..cbd33f7 100644 (file)
@@ -28,7 +28,7 @@ class ParserCache
                $key = $this->getKey( $article, $user );
                wfDebug( "Trying parser cache $key\n" );
                $value = $wgMemc->get( $key );
-               if ( $value ) {
+               if ( is_object( $value ) ) {
                        wfDebug( "Found.\n" );
                        # Delete if article has changed since the cache was made
                        $canCache = $article->checkTouched();