projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a253d73
)
Fix deleting last message in search mailbox
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 15 May 2009 21:24:58 +0000
(15:24 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 15 May 2009 21:24:58 +0000
(15:24 -0600)
imp/lib/Mailbox.php
patch
|
blob
|
history
diff --git
a/imp/lib/Mailbox.php
b/imp/lib/Mailbox.php
index
cd86057
..
b780742
100644
(file)
--- a/
imp/lib/Mailbox.php
+++ b/
imp/lib/Mailbox.php
@@
-420,6
+420,7
@@
class IMP_Mailbox
public function isValidIndex()
{
$this->_rebuild();
+ $this->setIndex(0, 'offset');
return !is_null($this->_arrayIndex);
}
@@
-635,9
+636,7
@@
class IMP_Mailbox
protected function _rebuild($force = false)
{
if ($force ||
- (!is_null($this->_arrayIndex) &&
- !$this->_searchmbox &&
- !$this->getIMAPIndex(1))) {
+ (!is_null($this->_arrayIndex) && !$this->getIMAPIndex(1))) {
$this->_sorted = null;
$this->_buildMailbox();
}