mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
UserBackend: Fix Variable '$backend' is probably undefined
This commit is contained in:
parent
2626d42c54
commit
54b3539896
@ -187,6 +187,7 @@ class UserBackend implements ConfigAwareFactory
|
||||
$name
|
||||
);
|
||||
}
|
||||
|
||||
if ($backendType === 'external') {
|
||||
$backend = new ExternalBackend($backendConfig);
|
||||
$backend->setName($name);
|
||||
@ -229,6 +230,7 @@ class UserBackend implements ConfigAwareFactory
|
||||
}
|
||||
|
||||
$resource = ResourceFactory::createResource($resourceConfig);
|
||||
$backend = null;
|
||||
switch ($backendType) {
|
||||
case 'db':
|
||||
$backend = new DbUserBackend($resource);
|
||||
|
Loading…
x
Reference in New Issue
Block a user