Skip to content

Commit

Permalink
Catch exception.
Browse files Browse the repository at this point in the history
Possible fix for Bug: 14058
  • Loading branch information
mrubinsk committed Jul 19, 2015
1 parent 4848402 commit d999aee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -2104,7 +2104,12 @@ public function setReadFlag($folderId, $id, $flags)
*/
public function getSpecialFolderNameByType($type)
{
$folders = $this->_imap->getSpecialMailboxes();
try {
$folders = $this->_imap->getSpecialMailboxes();
} catch (Horde_ActiveSync_Exception $e) {
$this->_logger->err($e->getMessage());
return false;
}
$folder = $folders[$type];
if (!is_null($folder)) {
return $folder->value;
Expand Down

0 comments on commit d999aee

Please sign in to comment.