From: Aaron Schulz Date: Wed, 21 Mar 2007 09:48:26 +0000 (+0000) Subject: *Use is_null() for namespace X-Git-Tag: 1.31.0-rc.0~53664 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=f71f29767b65251573196caa0ee962f71ef75f04;p=lhc%2Fweb%2Fwiklou.git *Use is_null() for namespace --- diff --git a/includes/SpecialProtectedpages.php b/includes/SpecialProtectedpages.php index 9d9a15f579..5057c49ef2 100644 --- a/includes/SpecialProtectedpages.php +++ b/includes/SpecialProtectedpages.php @@ -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' ),