alecpl
2011-04-26 68f39efb0476ba2d3cfe68ec49b5d6c1afcfdab0
- Fix fatal error from last commit (#1487884), rename rcube_gc() to gc()


1 files modified
6 ■■■■ changed files
program/include/rcube_session.php 6 ●●●● patch | view | raw | blame | history
program/include/rcube_session.php
@@ -166,7 +166,7 @@
    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) {
@@ -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();