Session object can be null if db/memcache is not available

release-0.6
thomascube 14 years ago
parent 19869073e3
commit 609c5e9da9

@ -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();
}

Loading…
Cancel
Save