summaryrefslogtreecommitdiffstats
path: root/core/Command/Log
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Log')
-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 [];
}