diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-11 10:51:42 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-11 10:51:42 +0000 |
| commit | ee18302ae4aec20fcf95e227267462c6b0500f55 (patch) | |
| tree | 745335e575ef5e72fe09f538664ebfaf69a23df9 /roundcubemail/program | |
| parent | d7b78da83f6f45f992784177790a9dc3e08c140e (diff) | |
Session object can be null if db/memcache is not available
git-svn-id: https://svn.roundcube.net/trunk@4925 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index dba846dd2..72f0efa92 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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(); } |
