]> git.mxchange.org Git - friendica.git/commitdiff
ref_session_write: fix update for entry in the session table
authorrabuzarus <>
Mon, 7 Nov 2016 21:25:09 +0000 (22:25 +0100)
committerrabuzarus <>
Mon, 7 Nov 2016 21:25:09 +0000 (22:25 +0100)
include/session.php

index 8a1a3c55de4a96027e9169766a429e07100106cf..31024060f3c0c7c1f465a6cee6fde44af8a4c0bf 100644 (file)
@@ -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`