r46182 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46181‎ | r46182 | r46183 >
Date:04:55, 25 January 2009
Author:werdna
Status:deferred
Tags:
Comment:
E_NOTICE
Modified paths:
  • /trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php
@@ -331,7 +331,11 @@
332332 function loadFilterData( $id ) {
333333
334334 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() );
336340 }
337341
338342 $dbr = wfGetDB( DB_SLAVE );

Status & tagging log