From: Aaron Schulz Date: Fri, 3 Apr 2009 13:49:26 +0000 (+0000) Subject: Correct empty case for r49149 X-Git-Tag: 1.31.0-rc.0~42241 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=84d33879ddeab1851e1496dc729aee7e3435f91f;p=lhc%2Fweb%2Fwiklou.git Correct empty case for r49149 --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 790df7105b..eb8e07a4a5 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -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 }