From 35d77d9a7bf2b6ca8dd6dcec459b8f284f19bc8c Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 15 Apr 2014 11:50:10 -0700 Subject: [PATCH] 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 --- includes/PrefixSearch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } /** -- 2.20.1