Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -354,8 +354,10 @@ |
355 | 355 | function internalAttemptSave( &$result, $bot = false ) { |
356 | 356 | global $wgHooks; |
357 | 357 | //clear confirmEdit for ajax edits: |
358 | | - foreach($wgHooks['EditFilter'] as $k=>$hook){ |
359 | | - unset($wgHooks['EditFilter'][$k]); |
| 358 | + if(isset($wgHooks['EditFilter'])){ |
| 359 | + foreach($wgHooks['EditFilter'] as $k=>$hook){ |
| 360 | + unset($wgHooks['EditFilter'][$k]); |
| 361 | + } |
360 | 362 | } |
361 | 363 | parent::internalAttemptSave( &$result, $bot = false ); |
362 | 364 | } |