r114678 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114677‎ | r114678 | r114679 >
Date:00:22, 3 April 2012
Author:raindrift
Status:deferred
Tags:
Comment:
namespace 0 is a valid input (article space). check for key presence/absence.
Modified paths:
  • /trunk/extensions/PageTriage/api/ApiPageTriageList.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/api/ApiPageTriageList.php
@@ -62,7 +62,7 @@
6363 $conds['page_is_redirect'] = 1;
6464 }
6565 // Show by namespace
66 - if ( $opts['namespace'] ) {
 66+ if ( array_key_exists( 'namespace', $opts ) ) {
6767 $conds['page_namespace'] = $opts['namespace'];
6868 }
6969

Status & tagging log