(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:
Matthias Mullie 2014-05-27 15:01:34 +02:00
parent 9fcb1283d3
commit 2c449c3acc

View file

@ -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() );
}