Only load old page_restrictions field if $oldFashionedRestrictions is really null...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 29 Apr 2008 19:18:58 +0000 (19:18 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 29 Apr 2008 19:18:58 +0000 (19:18 +0000)
includes/Title.php

index d08a2c4..d1a035d 100644 (file)
@@ -1693,7 +1693,7 @@ class Title {
 
                # Backwards-compatibility: also load the restrictions from the page record (old format).
 
-               if ( $oldFashionedRestrictions == NULL ) {
+               if ( $oldFashionedRestrictions === NULL ) {
                        $oldFashionedRestrictions = $dbr->selectField( 'page', 'page_restrictions', array( 'page_id' => $this->getArticleId() ), __METHOD__ );
                }