diff options
author | alecpl <alec@alec.pl> | 2011-11-12 08:10:35 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-12 08:10:35 +0000 |
commit | 1cb0d640ec1d5bebcaa2627ccdc02111c85982a3 (patch) | |
tree | ec6b82360dd4c8d3de25177bfe54e9e006297bfb /program/include/rcube_imap.php | |
parent | 8c2b883bf07e5686915f1ec8d1c746e39ad91e32 (diff) |
- Fix mailbox_status() so first run returns proper (empty) result
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 8c1fab8cf..6f2e3d8db 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1373,6 +1373,11 @@ class rcube_imap $this->_messagecount($mailbox, 'ALL', true); $result = 0; + + if (empty($old)) { + return $result; + } + $new = $this->get_folder_stats($mailbox); // got new messages |