mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
E_NOTICE
This commit is contained in:
parent
e5566b62c4
commit
06275af974
|
@ -331,7 +331,11 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
function loadFilterData( $id ) {
|
||||
|
||||
if ($id == 'new') {
|
||||
return array( new StdClass, array() );
|
||||
$obj = new stdClass;
|
||||
$obj->af_pattern = '';
|
||||
$obj->af_enabled = 1;
|
||||
$obj->af_hidden = 0;
|
||||
return array( $obj, array() );
|
||||
}
|
||||
|
||||
$dbr = wfGetDB( DB_SLAVE );
|
||||
|
|
Loading…
Reference in a new issue