mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +01:00
Possiable fix for cache not updating when submitting preferences
This commit is contained in:
parent
d61f3e5b4d
commit
617c270598
@ -330,15 +330,16 @@
|
|||||||
. 'sessionid = "'.$this->sessionid.'" and loginid = "'.$this->account_id.'" '
|
. 'sessionid = "'.$this->sessionid.'" and loginid = "'.$this->account_id.'" '
|
||||||
. 'and app = "'.$appname.'" and location = "'.$location.'"',__LINE__,__FILE__);
|
. 'and app = "'.$appname.'" and location = "'.$location.'"',__LINE__,__FILE__);
|
||||||
if ($phpgw->db->num_rows()==0) {
|
if ($phpgw->db->num_rows()==0) {
|
||||||
$data = addslashes($phpgw->crypto->encrypt(serialize($data)));
|
$data = addslashes($phpgw->crypto->encrypt(serialize($data)));
|
||||||
$phpgw->db->query('INSERT INTO phpgw_app_sessions (sessionid,loginid,app,location,content) '
|
$phpgw->db->query('INSERT INTO phpgw_app_sessions (sessionid,loginid,app,location,content) '
|
||||||
. 'VALUES ("'.$this->sessionid.'","'.$this->account_id.'","'.$appname
|
. 'VALUES ("'.$this->sessionid.'","'.$this->account_id.'","'.$appname
|
||||||
. '","'.$location.'","'.$data.'")',__LINE__,__FILE__);
|
. '","'.$location.'","'.$data.'")',__LINE__,__FILE__);
|
||||||
} else {
|
} else {
|
||||||
$phpgw->db->query('update phpgw_app_sessions set content = "'.$data.'" '
|
$data = addslashes($phpgw->crypto->encrypt(serialize($data)));
|
||||||
. 'where sessionid = "'.$this->sessionid.'" '
|
$phpgw->db->query('update phpgw_app_sessions set content = "'.$data.'" '
|
||||||
. 'and loginid = "'.$this->account_id.'" and app = "'.$appname.'" '
|
. 'where sessionid = "'.$this->sessionid.'" '
|
||||||
. 'and location = "'.$location.'"',__LINE__,__FILE__);
|
. 'and loginid = "'.$this->account_id.'" and app = "'.$appname.'" '
|
||||||
|
. 'and location = "'.$location.'"',__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user