From ba627c740f7e33175dd35fda84a1c95dc62f7812 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 31 Oct 2017 19:28:39 +0000 Subject: [PATCH] Bugfix: Avoid dba error message --- include/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/session.php b/include/session.php index 18a9755b53..a1412ad9b4 100644 --- a/include/session.php +++ b/include/session.php @@ -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); -- 2.39.5