From: Brion Vibber Date: Wed, 15 Dec 2004 09:07:21 +0000 (+0000) Subject: * Gracefully ignore non-legal titles in a X-Git-Tag: 1.5.0alpha1~1091 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=3150abb758f8f2088cbccbbab340ee7e71f08bef;p=lhc%2Fweb%2Fwiklou.git * Gracefully ignore non-legal titles in a --- 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 {