Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -331,7 +331,11 @@ |
332 | 332 | function loadFilterData( $id ) { |
333 | 333 | |
334 | 334 | if ($id == 'new') { |
335 | | - return array( new StdClass, array() ); |
| 335 | + $obj = new stdClass; |
| 336 | + $obj->af_pattern = ''; |
| 337 | + $obj->af_enabled = 1; |
| 338 | + $obj->af_hidden = 0; |
| 339 | + return array( $obj, array() ); |
336 | 340 | } |
337 | 341 | |
338 | 342 | $dbr = wfGetDB( DB_SLAVE ); |