From 896aa0d6044799a37542e3505eb38cd67b1a1f51 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 20 Aug 2013 19:04:05 +0200 Subject: [PATCH] - Fix setting refresh_interval to "Never" in Preferences (#1489286) Conflicts: CHANGELOG --- CHANGELOG | 2 ++ program/steps/settings/save_prefs.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 294a9422e..dd7307ce2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ CHANGELOG Roundcube Webmail =========================== +- Fix setting refresh_interval to "Never" in Preferences (#1489286) + RELEASE 0.9.3 ------------- - Optimized UI behavior for touch devices diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index dfb2b13ac..945005d39 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -156,7 +156,7 @@ switch ($CURR_SECTION) $a_user_prefs['timezone'] = (string) $a_user_prefs['timezone']; - if (isset($a_user_prefs['refresh_interval']) && !empty($CONFIG['min_refresh_interval'])) { + if (!empty($a_user_prefs['refresh_interval']) && !empty($CONFIG['min_refresh_interval'])) { if ($a_user_prefs['refresh_interval'] < $CONFIG['min_refresh_interval']) { $a_user_prefs['refresh_interval'] = $CONFIG['min_refresh_interval']; }