Aleksander Machniak
2012-08-09 23557f06d13f121a8483376dad1604eb30711a88
program/include/rcube_session.php
@@ -218,13 +218,14 @@
   * Handler for session_destroy()
   *
   * @param string Session ID
   *
   * @return boolean True on success
   */
  public function db_destroy($key)
  {
    $this->db->query(
      sprintf("DELETE FROM %s WHERE sess_id = ?", $this->db->table_name('session')),
      $key);
    if ($key) {
      $this->db->query(sprintf("DELETE FROM %s WHERE sess_id = ?", $this->db->table_name('session')), $key);
    }
    return true;
  }
@@ -305,11 +306,17 @@
   * Handler for session_destroy() with memcache backend
   *
   * @param string Session ID
   *
   * @return boolean True on success
   */
  public function mc_destroy($key)
  {
    return $this->memcache->delete($key);
    if ($key) {
      // #1488592: use 2nd argument
      $this->memcache->delete($key, 0);
    }
    return true;
  }