diff options
author | alecpl <alec@alec.pl> | 2009-05-12 18:46:17 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-12 18:46:17 +0000 |
commit | 6481bbcf340694c05fb6d974691ed7f67194b8e4 (patch) | |
tree | baeb690325eb05f4a3a22bf4b5c7280fed133d06 /program | |
parent | f22c2cefb4c7f8b1a995d5de6f706d49861c473c (diff) |
- don't stop on error
Diffstat (limited to 'program')
-rw-r--r-- | program/include/session.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/program/include/session.inc b/program/include/session.inc index 2d537eda6..7ba60412c 100644 --- a/program/include/session.inc +++ b/program/include/session.inc @@ -91,10 +91,6 @@ function rcube_sess_unset($var) { $DB = rcmail::get_instance()->get_dbh(); - if ($DB->is_error()) { - return false; - } - $now = $DB->fromunixtime(time()); $sql_result = $DB->query( @@ -223,8 +219,7 @@ function rcube_sess_unserialize($str) // handler for session_destroy() function rcube_sess_destroy($key) { - $rcmail = rcmail::get_instance(); - $DB = $rcmail->get_dbh(); + $DB = rcmail::get_instance()->get_dbh(); $DB->query("DELETE FROM " . get_table_name('session') . " WHERE sess_id=?", $key); |