From 82814aa74ed2a92e6c9496f78e94a850a1c403ea Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 22 Jul 2014 20:18:07 +0100 Subject: [PATCH] Call to a member function getText() on a non-object Bug: 68394 Change-Id: I78a9cd940fed9134263f086af89c15b5777b57fc --- includes/OutputPage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 19b2240300..fbdde64d6c 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1287,6 +1287,9 @@ class OutputPage extends ContextSource { foreach ( $categories as $category => $type ) { $origcategory = $category; $title = Title::makeTitleSafe( NS_CATEGORY, $category ); + if ( !$title ) { + continue; + } $wgContLang->findVariantLink( $category, $title, true ); if ( $category != $origcategory ) { if ( array_key_exists( $category, $categories ) ) { -- 2.20.1