From: Hypolite Petovan Date: Thu, 3 Sep 2020 20:06:52 +0000 (-0400) Subject: Fix fatal error in storage list console when default backend is used X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8cae804600d7dc7d21174d1bbd4476f9d65b8e0;p=friendica.git Fix fatal error in storage list console when default backend is used --- diff --git a/src/Console/Storage.php b/src/Console/Storage.php index 09e062049f..d0a2a66637 100644 --- a/src/Console/Storage.php +++ b/src/Console/Storage.php @@ -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; };