From 213a310d097a96ab75c8134b4d1d4728e3897243 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 15 Aug 2008 15:56:48 +0000 Subject: [PATCH] Avoid notice when no categories are present --- maintenance/parserTests.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index ba8349737b..01409c174b 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -336,7 +336,11 @@ class ParserTest { global $wgOut; $wgOut->addCategoryLinks($output->getCategories()); $cats = $wgOut->getCategoryLinks(); - $out = $this->tidy( implode( ' ', $cats['normal'] ) ); + if ( isset( $cats['normal'] ) ) { + $out = $this->tidy( implode( ' ', $cats['normal'] ) ); + } else { + $out = ''; + } } $result = $this->tidy($result); -- 2.20.1