Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -156,7 +156,10 @@ |
157 | 157 | $first = $dbr->selectField( 'logging', 'log_timestamp', |
158 | 158 | array('log_id' => $safeIds), __METHOD__, array('ORDER BY' => 'log_id') ); |
159 | 159 | # If there are no items, then stop here |
160 | | - if( $first == false ) $conds = '1 = 0'; |
| 160 | + if( $first == false ) { |
| 161 | + $conds = array('1=0'); |
| 162 | + return array($conds,$limit); |
| 163 | + } |
161 | 164 | # The event was be hidden after it was made |
162 | 165 | $conds[] = 'log_timestamp > '.$dbr->addQuotes($first); // type,time index |
163 | 166 | } |