]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix typing error
authorLouis Chemineau <louis@chmn.me>
Mon, 21 Jun 2021 10:22:44 +0000 (12:22 +0200)
committerLouis Chemineau <louis@chmn.me>
Mon, 21 Jun 2021 12:14:37 +0000 (14:14 +0200)
Signed-off-by: Louis Chemineau <louis@chmn.me>
core/Command/Log/Manage.php

index a57675ee42f56eeada4d424c8f0a8fd18d161e60..4c7e7dd8497791d7ab5f27fe3a1fec04860b4d88 100644 (file)
@@ -190,7 +190,11 @@ class Manage extends Command implements CompletionAwareInterface {
                } elseif ($optionName === 'level') {
                        return ['debug', 'info', 'warning', 'error', 'fatal'];
                } elseif ($optionName === 'timezone') {
-                       return \DateTimeZone::listIdentifiers();
+                       $identifier = \DateTimeZone::listIdentifiers();
+                       if ($identifier === false) {
+                               return [];
+                       }
+                       return $identifier;
                }
                return [];
        }