From: Brion Vibber Date: Tue, 28 Sep 2010 02:24:59 +0000 (+0000) Subject: Fix tab/space, use null as default value rather than string to match expected return... X-Git-Tag: 1.31.0-rc.0~34771 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=a09cb2ce9e0f28380a5523ae0408a0d4335dac53;p=lhc%2Fweb%2Fwiklou.git Fix tab/space, use null as default value rather than string to match expected return (cleanup from r73859) --- diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php index 9a5126639b..deba7740ce 100644 --- a/includes/search/SearchEngine.php +++ b/includes/search/SearchEngine.php @@ -111,7 +111,7 @@ class SearchEngine { $allSearchTerms = array_merge( $allSearchTerms, $wgContLang->autoConvertToAllVariants( $searchterm ) ); } - $titleResult = ''; + $titleResult = null; if ( !wfRunHooks( 'SearchGetNearMatchBefore', array( $allSearchTerms, &$titleResult ) ) ) { return $titleResult; }