From: River Tarnell Date: Tue, 28 Jun 2005 17:42:47 +0000 (+0000) Subject: check null title X-Git-Tag: 1.5.0beta2~151 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=f6882569225938931f0861e0362be4b901ade4bb;p=lhc%2Fweb%2Fwiklou.git check null title --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 46e77ec308..81d2ad639b 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -53,6 +53,9 @@ class SearchEngine { function getNearMatch( $term ) { # Exact match? No need to look further. $title = Title::newFromText( $term ); + if (is_null($title)) + return NULL; + if ( $title->getNamespace() == NS_SPECIAL || $title->exists() ) { return $title; }