From: Reedy Date: Tue, 22 Jul 2014 19:18:07 +0000 (+0100) Subject: Call to a member function getText() on a non-object X-Git-Tag: 1.31.0-rc.0~14808^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=82814aa74ed2a92e6c9496f78e94a850a1c403ea;p=lhc%2Fweb%2Fwiklou.git Call to a member function getText() on a non-object Bug: 68394 Change-Id: I78a9cd940fed9134263f086af89c15b5777b57fc --- 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 ) ) {