r91379 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91378‎ | r91379 | r91380 >
Date:18:12, 3 July 2011
Author:robin
Status:ok
Tags:
Comment:
Fix "Notice: Undefined property: WikiImporter::$nodeType" when importing pages
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/Hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/Hooks.php
@@ -611,7 +611,7 @@
612612 */
613613
614614 public static function handlePageXMLTag( $reader, &$pageInfo ) {
615 - if ( !( $reader->nodeType == XmlReader::ELEMENT &&
 615+ if ( !isset( $reader->nodeType ) || !( $reader->nodeType == XmlReader::ELEMENT &&
616616 $reader->name == 'DiscussionThreading' ) ) {
617617 return true;
618618 }

Status & tagging log