Skip to content

Commit

Permalink
Don't allow duplicate entries (i.e. non-IMAP containers) to appear in…
Browse files Browse the repository at this point in the history
… ftree
  • Loading branch information
slusarz committed Feb 26, 2014
1 parent 5ff6af3 commit 031d08f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imp/lib/Ftree.php
Expand Up @@ -763,7 +763,8 @@ protected function _normalize($id)
protected function _insertElt($elt)
{
$name = $this->_normalize($elt['v']);
if ($this->getAttribute('container', $name) === false) {
if (isset($this->_elts[$name]) ||
($this->getAttribute('container', $name) === false)) {
return;
}

Expand Down

0 comments on commit 031d08f

Please sign in to comment.