MDL-55390 core_search: Correct variable name
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 9 Aug 2016 05:44:10 +0000 (13:44 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 9 Aug 2016 05:44:10 +0000 (13:44 +0800)
search/classes/manager.php

index 87d1cad..d68dc04 100644 (file)
@@ -735,8 +735,7 @@ class manager {
      */
     protected static function is_search_area($searchareaname) {
         if (is_subclass_of($searchareaname, 'core_search\base')) {
-            $$searchareaname = new \ReflectionClass($searchareaname);
-            return $$searchareaname->IsInstantiable();
+            return (new \ReflectionClass($searchareaname))->isInstantiable();
         }
 
         return false;