This commit is contained in:
Andrew Garrett 2009-01-25 04:55:02 +00:00
parent e5566b62c4
commit 06275af974

View file

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