Use case sensitive check when checking for default folders (#1486346)

release-0.6
thomascube 15 years ago
parent 5e9a566101
commit d5ffb58726

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Use case sensitive check when checking for default folders (#1486346)
- Fix checking for new mail: now checks unseen count of inbox (#1485794) - Fix checking for new mail: now checks unseen count of inbox (#1485794)
- Improve performance by avoiding unnecessary updates to the session table (#1486325) - Improve performance by avoiding unnecessary updates to the session table (#1486325)
- Fix invalid <font> tags which cause HTML message rendering problems (#1486521) - Fix invalid <font> tags which cause HTML message rendering problems (#1486521)

@ -2156,9 +2156,9 @@ class rcube_imap
foreach ($this->default_folders as $folder) foreach ($this->default_folders as $folder)
{ {
$abs_name = $this->mod_mailbox($folder); $abs_name = $this->mod_mailbox($folder);
if (!in_array_nocase($abs_name, $a_folders)) if (!in_array($abs_name, $a_folders))
$this->create_mailbox($folder, TRUE); $this->create_mailbox($folder, TRUE);
else if (!in_array_nocase($abs_name, $a_subscribed)) else if (!in_array($abs_name, $a_subscribed))
$this->subscribe($folder); $this->subscribe($folder);
} }
} }

Loading…
Cancel
Save