From f71f29767b65251573196caa0ee962f71ef75f04 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 21 Mar 2007 09:48:26 +0000 Subject: [PATCH] *Use is_null() for namespace --- includes/SpecialProtectedpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ), -- 2.20.1