summaryrefslogtreecommitdiff
path: root/program/include/rcube_session.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-05-10 07:08:03 +0000
committerthomascube <thomas@roundcube.net>2011-05-10 07:08:03 +0000
commitff4ffc6d546d6d69bedd0018f8fbba40c867e468 (patch)
tree98cf491c46836c1cd9cc7cac41e99d8c762f1064 /program/include/rcube_session.php
parentfd540bad79750b20da7db7680f504ef1dc860b38 (diff)
Revert r4746 due to timestsamp issues with mysql; deprecate rcube_mdb2::unixtimestamp()
Diffstat (limited to 'program/include/rcube_session.php')
-rw-r--r--program/include/rcube_session.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php
index d3da36f57..e4d9a87aa 100644
--- a/program/include/rcube_session.php
+++ b/program/include/rcube_session.php
@@ -131,12 +131,11 @@ class rcube_session
public function db_read($key)
{
$sql_result = $this->db->query(
- sprintf("SELECT vars, ip, %s AS changed FROM %s WHERE sess_id = ?",
- $this->db->unixtimestamp('changed'), get_table_name('session')),
+ "SELECT vars, ip, changed FROM ".get_table_name('session')." WHERE sess_id = ?",
$key);
if ($sql_arr = $this->db->fetch_assoc($sql_result)) {
- $this->changed = $sql_arr['changed'];
+ $this->changed = strtotime($sql_arr['changed']);
$this->ip = $sql_arr['ip'];
$this->vars = base64_decode($sql_arr['vars']);
$this->key = $key;