From: Michael M Slusarz Date: Tue, 16 Dec 2008 07:04:22 +0000 (-0700) Subject: Catch exception. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5ad4fbf87390c2e46848d1a886c0799814013205;p=horde.git Catch exception. --- diff --git a/imp/ajax.php b/imp/ajax.php index d642778d5..a1ef86e79 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -49,7 +49,11 @@ function _changed($mbox, $compare, $rw = null) /* We know we are going to be dealing with this mailbox, so select it on * the IMAP server (saves some STATUS calls). */ if (!is_null($rw) && !$GLOBALS['imp_search']->isSearchMbox($mbox)) { - $GLOBALS['imp_imap']->ob->openMailbox($mbox, $rw ? Horde_Imap_Client::OPEN_READWRITE : Horde_Imap_Client::OPEN_AUTO); + try { + $GLOBALS['imp_imap']->ob->openMailbox($mbox, $rw ? Horde_Imap_Client::OPEN_READWRITE : Horde_Imap_Client::OPEN_AUTO); + } catch (Horde_Imap_Client_Exception $e) { + return false; + } } $imp_mailbox = &IMP_Mailbox::singleton($mbox);