diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-10 07:08:03 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-10 07:08:03 +0000 |
| commit | 13ac5799561da0876736b85da28e7e440fc6fea0 (patch) | |
| tree | 4ebe95431bc5893e02d3807ee961e71c9dcbdf97 /roundcubemail/program/include/rcube_session.php | |
| parent | e1ae72f14cf75aa44f81481024f511aee37d3aa0 (diff) | |
Revert r4746 due to timestsamp issues with mysql; deprecate rcube_mdb2::unixtimestamp()
git-svn-id: https://svn.roundcube.net/trunk@4747 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_session.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_session.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_session.php b/roundcubemail/program/include/rcube_session.php index d3da36f57..e4d9a87aa 100644 --- a/roundcubemail/program/include/rcube_session.php +++ b/roundcubemail/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; |
