r112111 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112110‎ | r112111 | r112112 >
Date:15:53, 22 February 2012
Author:maxsem
Status:ok
Tags:
Comment:
Avoid undefined index notices
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFormatter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFormatter.php
@@ -481,7 +481,12 @@
482482 */
483483 private function parseItemsToRemove() {
484484 wfProfileIn( __METHOD__ );
485 - $removals = array();
 485+ $removals = array(
 486+ 'ID' => array(),
 487+ 'TAG' => array(),
 488+ 'CLASS' => array(),
 489+ 'TAG_CLASS' => array(),
 490+ );
486491
487492 foreach ( $this->itemsToRemove as $itemToRemove ) {
488493 $type = '';

Status & tagging log