Call to a member function getText() on a non-object
authorReedy <reedy@wikimedia.org>
Tue, 22 Jul 2014 19:18:07 +0000 (20:18 +0100)
committerReedy <reedy@wikimedia.org>
Tue, 22 Jul 2014 19:18:07 +0000 (20:18 +0100)
Bug: 68394
Change-Id: I78a9cd940fed9134263f086af89c15b5777b57fc

includes/OutputPage.php

index 19b2240..fbdde64 100644 (file)
@@ -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 ) ) {