From 966116e75228de138e2acfb08c9dea9537dffaca Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 27 May 2011 21:43:07 +0000 Subject: [PATCH] Fix failing preprocessor tests by checking if ot is set. --- includes/parser/Preprocessor_DOM.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index b08ed09cbf..9305496031 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -185,7 +185,7 @@ class Preprocessor_DOM implements Preprocessor { if ( strpos( $text, '' ) !== false && strpos( $text, '' ) !== false ) { $enableOnlyinclude = true; } - } else if ( $this->parser->ot['wiki'] ) { + } else if ( isset( $this->parser->ot ) && $this->parser->ot['wiki'] ) { $ignoredTags = array( 'noinclude', '/noinclude', 'onlyinclude', '/onlyinclude', 'includeonly', '/includeonly' ); $ignoredElements = array(); } else { -- 2.20.1