r52753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52752‎ | r52753 | r52754 >
Date:20:37, 3 July 2009
Author:thomasv
Status:deferred
Tags:
Comment:
do not run the query if or is null
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -1158,7 +1158,7 @@
11591159
11601160 $page_ns_index = MWNamespace::getCanonicalIndex( strtolower( $pr_page_namespace ) );
11611161 $index_ns_index = MWNamespace::getCanonicalIndex( strtolower( $pr_index_namespace ) );
1162 - if( $page_ns_index==null ){
 1162+ if( $page_ns_index==null || $index_ns_index == null){
11631163 return true;
11641164 }
11651165

Status & tagging log