Fix fatal error in storage list console when default backend is used
This commit is contained in:
parent
560746eb3b
commit
e8cae80460
|
@ -106,7 +106,7 @@ HELP;
|
||||||
$isregisterd = false;
|
$isregisterd = false;
|
||||||
foreach ($this->storageManager->listBackends() as $name => $class) {
|
foreach ($this->storageManager->listBackends() as $name => $class) {
|
||||||
$issel = ' ';
|
$issel = ' ';
|
||||||
if ($current::getName() == $name) {
|
if ($current && $current::getName() == $name) {
|
||||||
$issel = '*';
|
$issel = '*';
|
||||||
$isregisterd = true;
|
$isregisterd = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue