diff --git a/core/Object.php b/core/Object.php index 8c3ac83c650..bfe7daca5aa 100755 --- a/core/Object.php +++ b/core/Object.php @@ -437,7 +437,7 @@ public static function has_extension($requiredExtension) { if(func_num_args() > 1) { Deprecation::notice('3.1.0', "Object::has_extension() deprecated. Call has_extension() on the class"); $class = func_get_arg(0); - $extension = func_get_arg(1); + $requiredExtension = func_get_arg(1); } $requiredExtension = strtolower($requiredExtension);