From: Chad Horohoe Date: Tue, 15 Apr 2014 18:50:10 +0000 (-0700) Subject: Followup af6d9aba: $search is a string, not an object X-Git-Tag: 1.31.0-rc.0~16206 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=35d77d9a7bf2b6ca8dd6dcec459b8f284f19bc8c;p=lhc%2Fweb%2Fwiklou.git Followup af6d9aba: $search is a string, not an object Reusing variables means you end up turning a string to an object and then confuse yourself by trying to pass it as a string again. Change-Id: I82b5ca65864099c180d915055c43e6839bd4f4a2 --- diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index 45c591adc6..a9179eb1e4 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -37,8 +37,8 @@ abstract class PrefixSearch { * @return Array of strings */ public static function titleSearch( $search, $limit, $namespaces = array() ) { - $search = new StringPrefixSearch; - return $search->search( $search, $limit, $namespaces ); + $prefixSearch = new StringPrefixSearch; + return $prefixSearch->search( $search, $limit, $namespaces ); } /**