summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-07-11 10:51:42 +0000
committerthomascube <thomas@roundcube.net>2011-07-11 10:51:42 +0000
commit609c5e9da9bb52c317eea1abbd424cca181caad9 (patch)
tree20e9b74c487fc0f847eb1309ea7dc3bc08317f2b /program/include/rcmail.php
parent19869073e3e60903ee90c5e5d9404058c29679fb (diff)
Session object can be null if db/memcache is not available
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index dba846dd2..72f0efa92 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1165,7 +1165,7 @@ class rcmail
$this->imap->close();
// before closing the database connection, write session data
- if ($_SERVER['REMOTE_ADDR']) {
+ if ($_SERVER['REMOTE_ADDR'] && is_object($this->session)) {
$this->session->cleanup();
session_write_close();
}