diff options
author | redmatrix <git@macgirvin.com> | 2016-05-31 17:50:47 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-31 17:50:47 -0700 |
commit | dfb6255f59980835d364402b372dd39f2b41ee7c (patch) | |
tree | f8d97437d713311a9cd3cf13e0e8faa5b617fa8f /Zotlabs/Web/SessionHandler.php | |
parent | 00b4843425371e4ff55c82be577a279e248c29fc (diff) | |
download | volse-hubzilla-dfb6255f59980835d364402b372dd39f2b41ee7c.tar.gz volse-hubzilla-dfb6255f59980835d364402b372dd39f2b41ee7c.tar.bz2 volse-hubzilla-dfb6255f59980835d364402b372dd39f2b41ee7c.zip |
more removal of reserved words from DB schemas
Diffstat (limited to 'Zotlabs/Web/SessionHandler.php')
-rw-r--r-- | Zotlabs/Web/SessionHandler.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Web/SessionHandler.php b/Zotlabs/Web/SessionHandler.php index 6980a6408..6e7333b4b 100644 --- a/Zotlabs/Web/SessionHandler.php +++ b/Zotlabs/Web/SessionHandler.php @@ -18,10 +18,10 @@ class SessionHandler implements \SessionHandlerInterface { function read ($id) { if($id) { - $r = q("SELECT `data` FROM `session` WHERE `sid`= '%s'", dbesc($id)); + $r = q("SELECT `sess_data` FROM `session` WHERE `sid`= '%s'", dbesc($id)); if($r) { - return $r[0]['data']; + return $r[0]['sess_data']; } else { q("INSERT INTO `session` (sid, expire) values ('%s', '%s')", @@ -59,7 +59,7 @@ class SessionHandler implements \SessionHandlerInterface { } q("UPDATE `session` - SET `data` = '%s', `expire` = '%s' WHERE `sid` = '%s'", + SET `sess_data` = '%s', `expire` = '%s' WHERE `sid` = '%s'", dbesc($data), dbesc($expire), dbesc($id) |