Merge "Cast filter id to integer in AbuseLogPrivateDetails output"

This commit is contained in:
jenkins-bot 2022-03-12 17:22:55 +00:00 committed by Gerrit Code Review
commit 1e105c8821

View file

@ -104,7 +104,7 @@ class AbuseLogPrivateDetails extends ApiBase {
$result = [
'log-id' => $params['logid'],
'user' => $row->afl_user_text,
'filter-id' => $row->af_id,
'filter-id' => (int)$row->af_id,
'filter-description' => $row->af_public_comments,
'ip-address' => $row->afl_ip !== '' ? $row->afl_ip : null
];