projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b81a300
)
There may be no unseen messages in the mailbox.
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 25 Nov 2008 07:48:31 +0000
(
00:48
-0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 25 Nov 2008 07:48:31 +0000
(
00:48
-0700)
imp/lib/Mailbox.php
patch
|
blob
|
history
diff --git
a/imp/lib/Mailbox.php
b/imp/lib/Mailbox.php
index
026ba88
..
f9c9f7c
100644
(file)
--- a/
imp/lib/Mailbox.php
+++ b/
imp/lib/Mailbox.php
@@
-470,7
+470,7
@@
class IMP_Mailbox
if ($sortpref['by'] == Horde_Imap_Client::SORT_ARRIVAL) {
try {
$res = $GLOBALS['imp_imap']->ob->status($this->_mailbox, Horde_Imap_Client::STATUS_FIRSTUNSEEN);
- $page_uid = $this->_sorted[$res['firstunseen'] - 1];
+ $page_uid =
is_null($res['firstunseen']) ? null :
$this->_sorted[$res['firstunseen'] - 1];
} catch (Horde_Imap_Client_Exception $e) {}
} else {
$unseen_msgs = $this->unseenMessages(Horde_Imap_Client::SORT_RESULTS_MIN);