From a60d139d873b77852658ddac04279b6f1e5570ce Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 28 Jun 2012 09:26:59 +0200 Subject: Define array variable in case none of zones is valid (shouldn't happen) --- program/steps/settings/func.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'program/steps') 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); -- cgit v1.2.3