mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
calling invalidate_session_cache only if it exists (setup does not have/need it)
This commit is contained in:
parent
8d5b6eef7a
commit
d8932b3ad3
@ -243,7 +243,8 @@
|
||||
),false,__LINE__,__FILE__);
|
||||
}
|
||||
}
|
||||
if ($this->account_id == $GLOBALS['egw_info']['user']['account_id'])
|
||||
if ($this->account_id == $GLOBALS['egw_info']['user']['account_id'] &&
|
||||
method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||
{
|
||||
$GLOBALS['egw']->invalidate_session_cache();
|
||||
}
|
||||
@ -386,7 +387,8 @@
|
||||
'acl_account' => $account_id,
|
||||
),__LINE__,__FILE__);
|
||||
|
||||
if ($account_id == $GLOBALS['egw_info']['user']['account_id'])
|
||||
if ($account_id == $GLOBALS['egw_info']['user']['account_id'] &&
|
||||
method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||
{
|
||||
$GLOBALS['egw']->invalidate_session_cache();
|
||||
}
|
||||
@ -420,8 +422,10 @@
|
||||
$where['acl_account'] = $cache_accountid[$accountid] = get_account_id($accountid,$this->account_id);
|
||||
}
|
||||
}
|
||||
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||
{
|
||||
$GLOBALS['egw']->invalidate_session_cache();
|
||||
|
||||
}
|
||||
if ($app == '%' || $app == '%%') unset($where['acl_appname']);
|
||||
|
||||
$this->db->delete($this->table_name,$where,__LINE__,__FILE__);
|
||||
|
@ -94,7 +94,7 @@
|
||||
}
|
||||
$this->db->unlock();
|
||||
|
||||
if ($this->appname == 'phpgwapi')
|
||||
if ($this->appname == 'phpgwapi' && method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||
{
|
||||
$GLOBALS['egw']->invalidate_session_cache(); // in case egw_info is cached in the session (phpgwapi is in egw_info[server])
|
||||
}
|
||||
|
@ -602,8 +602,10 @@
|
||||
$GLOBALS['egw_info']['user']['preferences'] = $this->data;
|
||||
$GLOBALS['egw']->session->save_repositories();
|
||||
}
|
||||
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||
{
|
||||
$GLOBALS['egw']->invalidate_session_cache(); // in case with cache the egw_info array in the session
|
||||
|
||||
}
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user