summaryrefslogtreecommitdiff
path: root/program/steps/settings/func.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-28 09:26:59 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-28 09:26:59 +0200
commita60d139d873b77852658ddac04279b6f1e5570ce (patch)
tree7ef07bc2ffa3bffd008c127fb2152b9b727e222b /program/steps/settings/func.inc
parent669747a81c4b2ff823d1f20dc50899163c0a8a4a (diff)
Define array variable in case none of zones is valid (shouldn't happen)
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r--program/steps/settings/func.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 59bf788e5..f44a96dab 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -181,6 +181,7 @@ function rcmail_user_prefs($current=null)
$select_timezone = new html_select(array('name' => '_timezone', 'id' => $field_id));
$select_timezone->add(rcube_label('autodetect'), 'auto');
+ $zones = array();
foreach (DateTimeZone::listIdentifiers() as $i => $tzs) {
try {
$tz = new DateTimeZone($tzs);