1
1
Fork 0

Merge pull request #3848 from annando/session-destroy

Bugfix: Avoid dba error message
This commit is contained in:
Michael Vogel 2017-10-31 21:00:31 +01:00 committed by GitHub
commit 92a17643c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ function ref_session_write($id, $data) {
if ($session_exists) {
$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);
} else {
$fields = array('sid' => $id, 'expire' => $default_expire, 'data' => $data);