From 3150abb758f8f2088cbccbbab340ee7e71f08bef Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 15 Dec 2004 09:07:21 +0000 Subject: [PATCH] * Gracefully ignore non-legal titles in a --- includes/Parser.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Parser.php b/includes/Parser.php index 17c52ad768..a516cd8320 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3103,6 +3103,10 @@ class Parser continue; } $nt = Title::newFromURL( $matches[1] ); + if( is_null( $nt ) ) { + # Bogus title. Ignore these so we don't bomb out later. + continue; + } if ( isset( $matches[3] ) ) { $label = $matches[3]; } else { -- 2.20.1