aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/SessionHandler.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-01 09:15:56 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-01 09:15:56 +0200
commitc1039977f1d64611d2c793f3aded96d031b74183 (patch)
treefa32a8f59c863564998cd149a902388dd363d605 /Zotlabs/Web/SessionHandler.php
parent316fee93f7f7df92db514de961b74a71556fdb63 (diff)
parentb1259876bf398880e7b0c1b44d90f94983243e72 (diff)
downloadvolse-hubzilla-c1039977f1d64611d2c793f3aded96d031b74183.tar.gz
volse-hubzilla-c1039977f1d64611d2c793f3aded96d031b74183.tar.bz2
volse-hubzilla-c1039977f1d64611d2c793f3aded96d031b74183.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Web/SessionHandler.php')
-rw-r--r--Zotlabs/Web/SessionHandler.php6
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)