From ad8552ea6ffc656fb65480290d00f0572bc1fcd0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 26 May 2012 13:45:33 +0200 Subject: Fix possible PHP warning --- program/steps/settings/func.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index dc7c68e3b..8f2528e69 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -184,7 +184,9 @@ function rcmail_user_prefs($current=null) $select_timezone = new html_select(array('name' => '_timezone', 'id' => $field_id)); $select_timezone->add(rcube_label('autodetect'), 'auto'); - $now = new DateTime(); + $now = new DateTime(); + $zones = array(); + foreach (DateTimeZone::listIdentifiers() as $i => $tzs) { try { $tz = new DateTimeZone($tzs); -- cgit v1.2.3