From 87ff88d55003a7af755d290ae06173c4d73cc133 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <bruederli@kolabsys.com>
Date: Mon, 09 Mar 2015 12:17:04 -0400
Subject: [PATCH] Fix session garbage collector handler registration after refactoring

---
 program/lib/Roundcube/rcube_session_db.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/program/lib/Roundcube/rcube_session_db.php b/program/lib/Roundcube/rcube_session_db.php
index 78138d1..4d94f43 100644
--- a/program/lib/Roundcube/rcube_session_db.php
+++ b/program/lib/Roundcube/rcube_session_db.php
@@ -168,6 +168,7 @@
         // just clean all old sessions when this GC is called
         $this->db->query("DELETE FROM " . $this->db->table_name('session')
                          . " WHERE changed < " . $this->db->now(-$this->gc_enabled));
+        $this->log("Session GC (DB): remove records < " . date('Y-m-d H:i:s', time() - $this->gc_enabled) . '; rows = ' . intval($this->db->affected_rows()));
     }
 
 }
\ No newline at end of file

--
Gitblit v1.9.1