checking interval pref now on each page request, as setting it to 0 gives a division by zero error

This commit is contained in:
Ralf Becker 2006-04-05 14:38:07 +00:00
parent d515ec7100
commit 6a059157d1

View File

@ -1600,7 +1600,7 @@ class bocal
*/ */
function check_set_default_prefs() function check_set_default_prefs()
{ {
if (($set = $GLOBALS['egw']->session->appsession('default_prefs_set','calendar'))) if ($this->cal_prefs['interval'] && ($set = $GLOBALS['egw']->session->appsession('default_prefs_set','calendar')))
{ {
return; return;
} }