diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php index 87dd868f966..3718af9b427 100644 --- a/system/core/CodeIgniter.php +++ b/system/core/CodeIgniter.php @@ -384,7 +384,7 @@ function &get_instance() * ReflectionMethod::isConstructor() is the ONLY reliable check, * knowing which method will be executed as a constructor. */ - else + elseif ( ! in_array($method, get_class_methods($class))) { $reflection = new ReflectionMethod($class, $method); if ( ! $reflection->isPublic() OR $reflection->isConstructor())