Correct empty case for r49149
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 3 Apr 2009 13:49:26 +0000 (13:49 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 3 Apr 2009 13:49:26 +0000 (13:49 +0000)
includes/specials/SpecialRevisiondelete.php

index 790df71..eb8e07a 100644 (file)
@@ -156,7 +156,10 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
                        $first = $dbr->selectField( 'logging', 'log_timestamp',
                                array('log_id' => $safeIds), __METHOD__, array('ORDER BY' => 'log_id') );
                        # If there are no items, then stop here
-                       if( $first == false ) $conds = '1 = 0';
+                       if( $first == false ) {
+                               $conds = array('1=0');
+                               return array($conds,$limit);
+                       }
                        # The event was be hidden after it was made
                        $conds[] = 'log_timestamp > '.$dbr->addQuotes($first); // type,time index
                }