mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 02:03:53 +00:00
ViewEdit: account for empty actions in imported data
Empty actions are JSONified as [], not {}, hence they're not objects. Bug: T252181 Change-Id: Ieb5e315ad87bd3a489ade26f5f0dd202810ae896
This commit is contained in:
parent
36a0f41873
commit
8a7a576cb0
|
@ -1393,7 +1393,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( !is_object( $arr['row'] ) || !is_object( $arr['actions'] ) ) {
|
||||
if ( !is_object( $arr['row'] ) || !( is_object( $arr['actions'] ) || $arr['actions'] === [] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue