Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -336,7 +336,11 @@ |
337 | 337 | global $wgOut; |
338 | 338 | $wgOut->addCategoryLinks($output->getCategories()); |
339 | 339 | $cats = $wgOut->getCategoryLinks(); |
340 | | - $out = $this->tidy( implode( ' ', $cats['normal'] ) ); |
| 340 | + if ( isset( $cats['normal'] ) ) { |
| 341 | + $out = $this->tidy( implode( ' ', $cats['normal'] ) ); |
| 342 | + } else { |
| 343 | + $out = ''; |
| 344 | + } |
341 | 345 | } |
342 | 346 | |
343 | 347 | $result = $this->tidy($result); |