From d025b83c93b9c5762f97740c6d87d3b73c2557c9 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 7 Nov 2016 22:25:09 +0100 Subject: [PATCH] ref_session_write: fix update for entry in the session table --- include/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/session.php b/include/session.php index 8a1a3c55d..31024060f 100644 --- a/include/session.php +++ b/include/session.php @@ -73,7 +73,7 @@ function ref_session_write($id, $data) { $r = q("UPDATE `session` SET `data` = '%s', `expire` = '%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)); } else { $r = q("INSERT INTO `session`