diff --git a/includes/AbuseFilter.class.php b/includes/AbuseFilter.class.php index 5ce73379f..c531e96ad 100644 --- a/includes/AbuseFilter.class.php +++ b/includes/AbuseFilter.class.php @@ -1118,10 +1118,7 @@ class AbuseFilter { $data['afl_var_dump'] = $var_dump; $data['afl_id'] = $dbw->nextSequenceValue( 'abuse_filter_log_afl_id_seq' ); $dbw->insert( 'abuse_filter_log', $data, __METHOD__ ); - $local_log_ids[] = $dbw->insertId(); - if ( $data['afl_id'] === null ) { - $data['afl_id'] = $dbw->insertId(); - } + $local_log_ids[] = $data['afl_id'] = $dbw->insertId(); // Give grep a chance to find the usages: // logentry-abusefilter-hit $entry = new ManualLogEntry( 'abusefilter', 'hit' );