diff --git a/application/Espo/Core/ServiceFactory.php b/application/Espo/Core/ServiceFactory.php index 0ff9191b0c..5751906111 100644 --- a/application/Espo/Core/ServiceFactory.php +++ b/application/Espo/Core/ServiceFactory.php @@ -50,15 +50,17 @@ class ServiceFactory protected function getClassName(string $name) { - return $this->classFinder->find('Services', $name, true); + return $this->classFinder->find('Services', $name); } public function checkExists(string $name) : bool { $className = $this->getClassName($name); + if (!$className) { return false; } + return true; }