mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Added a call to sessions->delete_cache() and a call to re-read the users session data when being set to the default preferences set by the admin.
This commit is contained in:
parent
a039cec5bd
commit
3f95bef544
@ -239,6 +239,7 @@
|
||||
|
||||
if ($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $this->account_id == $GLOBALS['phpgw_info']['user']['account_id'])
|
||||
{
|
||||
$GLOBALS['phpgw']->session->delete_cache($this->account_id);
|
||||
$GLOBALS['phpgw']->session->read_repositories(False);
|
||||
}
|
||||
|
||||
@ -261,6 +262,12 @@
|
||||
$this->db->query("insert into phpgw_preferences values ('$account_id','"
|
||||
. $this->db->f('preference_value') . "')",__LINE__,__FILE__);
|
||||
}
|
||||
|
||||
if ($GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $account_id == $GLOBALS['phpgw_info']['user']['account_id'])
|
||||
{
|
||||
$GLOBALS['phpgw']->session->read_repositories(False);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -507,6 +514,7 @@
|
||||
// are we dealing with the default email account or an extra email account?
|
||||
if (!(isset($acctnum)) || ((string)$acctnum == ''))
|
||||
{
|
||||
settype($acctnum,'integer');
|
||||
// account 0 is the default email account
|
||||
$acctnum = 0;
|
||||
// $prefs stays AS IS!
|
||||
|
Loading…
Reference in New Issue
Block a user