Merge remote-tracking branch 'upstream/develop' into forum-exclamation
This commit is contained in:
commit
ba6cb7bacf
|
@ -74,7 +74,7 @@ function ref_session_write($id, $data) {
|
||||||
|
|
||||||
if ($session_exists) {
|
if ($session_exists) {
|
||||||
$fields = array('data' => $data, 'expire' => $expire);
|
$fields = array('data' => $data, 'expire' => $expire);
|
||||||
$condition = array("WHERE `sid` = ? AND (`data` != ? OR `expire` != ?)", $id, $data, $expire);
|
$condition = array("`sid` = ? AND (`data` != ? OR `expire` != ?)", $id, $data, $expire);
|
||||||
dba::update('session', $fields, $condition);
|
dba::update('session', $fields, $condition);
|
||||||
} else {
|
} else {
|
||||||
$fields = array('sid' => $id, 'expire' => $default_expire, 'data' => $data);
|
$fields = array('sid' => $id, 'expire' => $default_expire, 'data' => $data);
|
||||||
|
|
Loading…
Reference in a new issue