mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
(bug 65805) Fix notice when creating new filter
Notice: Undefined index: af_throttled in extensions/AbuseFilter/Views/AbuseFilterViewEdit.php on line 148 This assumes af_throttled to exist in $newRow, which comes from AbuseFilterViewEdit::loadRequest, which in turn comes from AbuseFilterViewEdit::loadFilterData, where no af_throttled property is added to the newly created object. Bug: 65805 Change-Id: I45ad0ea2cea242711b6109e67b99b71242ff57f6
This commit is contained in:
parent
9fcb1283d3
commit
2c449c3acc
|
@ -811,6 +811,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$obj->af_enabled = 1;
|
||||
$obj->af_hidden = 0;
|
||||
$obj->af_global = 0;
|
||||
$obj->af_throttled = 0;
|
||||
return array( $obj, array() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue