summaryrefslogtreecommitdiff
path: root/program/include/session.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/session.inc')
-rw-r--r--program/include/session.inc7
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);