diff options
author | alecpl <alec@alec.pl> | 2009-04-24 12:54:25 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-04-24 12:54:25 +0000 |
commit | 76db10d65d6c21062c39ae867ab6d34f33aca537 (patch) | |
tree | d17fd353016d77f03714a629649955a70bcaf8a1 /program/include/rcmail.php | |
parent | 9d003afcad77b22dfe6743b8cf3fdd04e9f0e3d0 (diff) |
- fix setting empty string in imap_root
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 56fc2f5db..603ac335a 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -371,13 +371,9 @@ class rcmail $options = array( 'imap' => $this->config->get('imap_auth_type', 'check'), 'delimiter' => isset($_SESSION['imap_delimiter']) ? $_SESSION['imap_delimiter'] : $this->config->get('imap_delimiter'), + 'rootdir' => isset($_SESSION['imap_root']) ? $_SESSION['imap_root'] : $this->config->get('imap_root'), ); - - if (isset($_SESSION['imap_root'])) - $options['rootdir'] = $_SESSION['imap_root']; - else if ($imap_root = $this->config->get('imap_root')) - $options['rootdir'] = $imap_root; - + $this->imap->set_options($options); // set global object for backward compatibility |