fix notice with $options
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 12 Apr 2007 23:51:12 +0000 (23:51 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 12 Apr 2007 23:51:12 +0000 (23:51 +0000)
maintenance/cleanupSpam.php

index 0972d03..534e160 100644 (file)
@@ -76,7 +76,7 @@ if ( !$like ) {
 
 $dbr = wfGetDB( DB_SLAVE );
 
-if ( $options['all'] ) {
+if ( isset($options['all']) ) {
        // Clean up spam on all wikis
        $dbr = wfGetDB( DB_SLAVE );
        print "Finding spam on " . count($wgLocalDatabases) . " wikis\n";