Use correct variable in AbuseFilter::addLogEntries

The data was inserted to the foreign database, so the id needs
to be fetch from that one.

Change-Id: I8eef8d74fc924829447e31f4445154b01b92aa7a
This commit is contained in:
Matěj Suchánek 2018-09-13 11:57:55 +02:00
parent 3016f32e3a
commit 6eb5d9766b

View file

@ -1420,7 +1420,7 @@ class AbuseFilter {
foreach ( $central_log_rows as $row ) {
$fdb->insert( 'abuse_filter_log', $row, __METHOD__ );
$global_log_ids[] = $dbw->insertId();
$global_log_ids[] = $fdb->insertId();
}
$fdb->onTransactionPreCommitOrIdle(