[Svn] r4698 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Tue Apr 26 09:30:45 CEST 2011


Author: alec
Date: 2011-04-26 02:30:45 -0500 (Tue, 26 Apr 2011)
New Revision: 4698

Modified:
   trunk/roundcubemail/program/include/rcube_session.php
Log:
- Fix fatal error from last commit (#1487884), rename rcube_gc() to gc()


Modified: trunk/roundcubemail/program/include/rcube_session.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_session.php	2011-04-25 19:46:54 UTC (rev 4697)
+++ trunk/roundcubemail/program/include/rcube_session.php	2011-04-26 07:30:45 UTC (rev 4698)
@@ -166,12 +166,12 @@
     if ($key == $this->key && $ts - $this->start < 0.5) {
       $oldvars = $this->vars;
     } else { // else read data again from DB
-      $oldvars = $this->read($key);
+      $oldvars = $this->db_read($key);
     }
 
     if ($oldvars !== false) {
       $newvars = $this->_fixvars($vars, $oldvars);
-      
+
       if ($newvars !== $oldvars) {
         $this->db->query(
           sprintf("UPDATE %s SET vars=?, changed=%s WHERE sess_id=?",
@@ -193,8 +193,8 @@
     $this->unsets = array();
     return true;
   }
-  
-  
+
+
   private function _fixvars($vars, $oldvars)
   {
     $ts = microtime(true);
@@ -211,7 +211,7 @@
       else
         $newvars = $vars;
     }
-    
+
     $this->unsets = array();
     return $newvars;
   }
@@ -246,7 +246,7 @@
       sprintf("DELETE FROM %s WHERE changed < %s",
         get_table_name('session'), $this->db->fromunixtime(time() - $maxlifetime)));
 
-    $this->rcube_gc();
+    $this->gc();
 
     return true;
   }
@@ -315,7 +315,7 @@
   /**
    * Execute registered garbage collector routines
    */
-  public function rcube_gc()
+  public function gc()
   {
     foreach ($this->gc_handlers as $fct)
       $fct();

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list