1
0
Fork 0

ref_session_write: fix update for entry in the session table

This commit is contained in:
rabuzarus 2016-11-07 22:25:09 +01:00
parent c1581fd432
commit d025b83c93

View file

@ -73,7 +73,7 @@ function ref_session_write($id, $data) {
$r = q("UPDATE `session` $r = q("UPDATE `session`
SET `data` = '%s', `expire` = '%s' SET `data` = '%s', `expire` = '%s'
WHERE `sid` = '%s' WHERE `sid` = '%s'
AND (`data` != '%s' OR `expire` != '%s'", AND (`data` != '%s' OR `expire` != '%s')",
dbesc($data), dbesc($expire), dbesc($id), dbesc($data), dbesc($expire)); dbesc($data), dbesc($expire), dbesc($id), dbesc($data), dbesc($expire));
} else { } else {
$r = q("INSERT INTO `session` $r = q("INSERT INTO `session`