Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -386,12 +386,12 @@ |
387 | 387 | # If we get some results, it helps to know if the IP in general |
388 | 388 | # has a lot more edits, e.g. "tip of the iceberg"... |
389 | 389 | $ipedits = $dbr->estimateRowCount( 'cu_changes', '*', |
390 | | - array( 'cuc_ip_hex' => $ips_hex[$ip] ), |
| 390 | + array( 'cuc_ip_hex' => $ips_hex[$ip], $time_conds ), |
391 | 391 | __METHOD__ ); |
392 | 392 | # If small enough, get a more accurate count |
393 | 393 | if( $ipedits <= 1000 ) { |
394 | 394 | $ipedits = $dbr->selectField( 'cu_changes', 'COUNT(*)', |
395 | | - array( 'cuc_ip_hex' => $ips_hex[$ip] ), |
| 395 | + array( 'cuc_ip_hex' => $ips_hex[$ip], $time_conds ), |
396 | 396 | __METHOD__ ); |
397 | 397 | } |
398 | 398 | if( $ipedits > $ips_edits[$ip] ) { |