Skip to content

Commit

Permalink
Proper array check
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Aug 26, 2014
1 parent 375e019 commit a1a759e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Factory/MailboxList.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function _getCache(IMP_Mailbox $mbox)

$key = intval($mbox->search || !$mbox->is_imap);

if (!$this->_cache[$key]) {
if (!isset($this->_cache[$key])) {
if (empty($this->_cache)) {
Horde_Shutdown::add($this);
}
Expand Down

0 comments on commit a1a759e

Please sign in to comment.