From 8eeb721bd69e602137d93b0dfecc33752b078679 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 13 Mar 2015 05:28:06 -0400
Subject: [PATCH] Fix unintended DB session expiration - lost variable in refactoring (#1490316)
---
program/lib/Roundcube/rcube_session_db.php | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/program/lib/Roundcube/rcube_session_db.php b/program/lib/Roundcube/rcube_session_db.php
index 4d94f43..a814c2b 100644
--- a/program/lib/Roundcube/rcube_session_db.php
+++ b/program/lib/Roundcube/rcube_session_db.php
@@ -143,7 +143,8 @@
*/
public function update($key, $newvars, $oldvars)
{
- $now = $this->db->now();
+ $now = $this->db->now();
+ $ts = microtime(true);
// if new and old data are not the same, update data
// else update expire timestamp only when certain conditions are met
--
Gitblit v1.9.1