mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
AuthBackendController: Fix Variable '$backend' is probably undefined
This commit is contained in:
parent
d8fe09f368
commit
eeff32d4ce
@ -63,6 +63,7 @@ class AuthBackendController extends CompatController
|
|||||||
*/
|
*/
|
||||||
protected function getUserBackend($name = null, $interface = 'Icinga\Data\Selectable')
|
protected function getUserBackend($name = null, $interface = 'Icinga\Data\Selectable')
|
||||||
{
|
{
|
||||||
|
$backend = null;
|
||||||
if ($name !== null) {
|
if ($name !== null) {
|
||||||
$config = Config::app('authentication');
|
$config = Config::app('authentication');
|
||||||
if (! $config->hasSection($name)) {
|
if (! $config->hasSection($name)) {
|
||||||
@ -121,6 +122,7 @@ class AuthBackendController extends CompatController
|
|||||||
*/
|
*/
|
||||||
protected function getUserGroupBackend($name = null, $interface = 'Icinga\Data\Selectable')
|
protected function getUserGroupBackend($name = null, $interface = 'Icinga\Data\Selectable')
|
||||||
{
|
{
|
||||||
|
$backend = null;
|
||||||
if ($name !== null) {
|
if ($name !== null) {
|
||||||
$config = Config::app('groups');
|
$config = Config::app('groups');
|
||||||
if (! $config->hasSection($name)) {
|
if (! $config->hasSection($name)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user