mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
8efb465eee
commit
80fefe27dc
@ -149,7 +149,13 @@ class Backend implements ConfigAwareFactory, DatasourceInterface
|
||||
$name = self::getDefaultBackendName();
|
||||
}
|
||||
|
||||
$config = self::$backendConfigs[$name];
|
||||
if (isset(self::$backendConfigs[$name])) {
|
||||
$config = self::$backendConfigs[$name];
|
||||
} else {
|
||||
throw new ConfigurationError(
|
||||
'No configuration for backend' . $name
|
||||
);
|
||||
}
|
||||
|
||||
self::$backendInstances[$name] = $backend = new self($config, ResourceFactory::getResourceConfig($config->resource));
|
||||
switch (strtolower($config->type)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user