Merge "Avoid array_filter on explode()"

This commit is contained in:
jenkins-bot 2020-10-09 07:49:24 +00:00 committed by Gerrit Code Review
commit 73d6544bc6

View file

@ -412,7 +412,7 @@ class AbuseFilterHooks {
$tags = [];
foreach ( $res as $row ) {
$tags = array_merge(
array_filter( explode( "\n", $row->afa_parameters ) ),
$row->afa_parameters ? explode( "\n", $row->afa_parameters ) : [],
$tags
);
}
@ -430,7 +430,7 @@ class AbuseFilterHooks {
foreach ( $res as $row ) {
$tags = array_merge(
array_filter( explode( "\n", $row->afa_parameters ) ),
$row->afa_parameters ? explode( "\n", $row->afa_parameters ) : [],
$tags
);
}