aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Log/Manage.php
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-06-21 12:22:44 +0200
committerLouis Chemineau <louis@chmn.me>2021-06-21 14:14:37 +0200
commitf40150b7588fb738e365c67153584a72a80a51c8 (patch)
treea42c6d401f10aa244ec38c836c9843d428ca8e39 /core/Command/Log/Manage.php
parent0bf4e1e8401a8cd1ceeda254914a3358f0bd2c03 (diff)
downloadnextcloud-server-f40150b7588fb738e365c67153584a72a80a51c8.tar.gz
nextcloud-server-f40150b7588fb738e365c67153584a72a80a51c8.zip
Fix typing error
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core/Command/Log/Manage.php')
-rw-r--r--core/Command/Log/Manage.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Command/Log/Manage.php b/core/Command/Log/Manage.php
index a57675ee42f..4c7e7dd8497 100644
--- a/core/Command/Log/Manage.php
+++ b/core/Command/Log/Manage.php
@@ -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 [];
}