mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:00:16 +00:00
Bugfix: Avoid dba error message
This commit is contained in:
parent
7566464a58
commit
ba627c740f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue