*Use is_null() for namespace
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 21 Mar 2007 09:48:26 +0000 (09:48 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 21 Mar 2007 09:48:26 +0000 (09:48 +0000)
includes/SpecialProtectedpages.php

index 9d9a15f..5057c49 100644 (file)
@@ -210,7 +210,7 @@ class ProtectedPagesPager extends ReverseChronologicalPager {
                $conds[] = 'pr_type=' . $this->mDb->addQuotes( $this->type );
                if ( $this->level )
                        $conds[] = 'pr_level=' . $this->mDb->addQuotes( $this->level );
-               if ( $this->namespace )
+               if ( !is_null($this->namespace) )
                        $conds[] = 'page_namespace=' . $this->mDb->addQuotes( $this->namespace );
                return array(
                        'tables' => array( 'page_restrictions', 'page' ),