mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-13 17:27:20 +00:00
Merge "Avoid array_filter on explode()"
This commit is contained in:
commit
73d6544bc6
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue