diff --git a/library/Icinga/Application/Modules/Manager.php b/library/Icinga/Application/Modules/Manager.php index db597f6d3..050c6c275 100644 --- a/library/Icinga/Application/Modules/Manager.php +++ b/library/Icinga/Application/Modules/Manager.php @@ -128,10 +128,10 @@ class Manager private function detectEnabledModules() { $canonical = $this->enableDir; - if ($canonical === false) { - throw new NotReadableError( - 'Cannot read enabled modules. Module directory "' . $this->enableDir . '" does not exist' - ); + if ($canonical === false || ! file_exists($canonical)) { + // TODO: I guess the check for false has something to do with a + // call to realpath no longer present + return; } if (!is_dir($this->enableDir)) { throw new NotReadableError(