fix warbubg when the array is set to false
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 16 Jan 2007 21:01:54 +0000 (21:01 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 16 Jan 2007 21:01:54 +0000 (21:01 +0000)
maintenance/updateSpecialPages.php

index 89b5aa9..fae0722 100644 (file)
@@ -28,11 +28,11 @@ foreach ( $wgQueryPages as $page ) {
                continue;
        }
 
-       if ( in_array( $special, $wgDisableQueryPageUpdate ) ) {
+       if ( $wgDisableQueryPageUpdate && in_array( $special, $wgDisableQueryPageUpdate ) ) {
                printf("%-30s disabled\n", $special);
                continue;
        }
-               
+
        $specialObj = SpecialPage::getPage( $special );
        if ( !$specialObj ) {
                print "No such special page: $special\n";