Fix fatal error in storage list console when default backend is used

This commit is contained in:
Hypolite Petovan 2020-09-03 16:06:52 -04:00
parent 560746eb3b
commit e8cae80460

View file

@ -106,7 +106,7 @@ HELP;
$isregisterd = false;
foreach ($this->storageManager->listBackends() as $name => $class) {
$issel = ' ';
if ($current::getName() == $name) {
if ($current && $current::getName() == $name) {
$issel = '*';
$isregisterd = true;
};