mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
"stop calendar to update prefs on each request (do it only on change)"
This commit is contained in:
parent
7ad5e22305
commit
e3c468361d
@ -381,9 +381,12 @@ class calendar_ui
|
||||
// save defined states into the user-prefs
|
||||
if(!empty($states) && is_array($states))
|
||||
{
|
||||
$saved_states = array_intersect_key($states,array_flip($this->states_to_save));
|
||||
$GLOBALS['egw']->preferences->add('calendar','saved_states',serialize($saved_states));
|
||||
$GLOBALS['egw']->preferences->save_repository(false,'user',false);
|
||||
$saved_states = serialize(array_intersect_key($states,array_flip($this->states_to_save)));
|
||||
if ($saved_states != $this->cal_prefs['saved_states'])
|
||||
{
|
||||
$GLOBALS['egw']->preferences->add('calendar','saved_states',$saved_states);
|
||||
$GLOBALS['egw']->preferences->save_repository(false,'user',false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user