Merge pull request #9129 from MrPetovan/bug/fatal-errors

Fix fatal error in storage list console when default backend is used
This commit is contained in:
Michael Vogel 2020-09-03 22:16:10 +02:00 committed by GitHub
commit 9a91eb655a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
};