fixes bug when alerting and a single gpg key is giving problems

pull/61/head
Christophe Vandeplas 2012-10-30 12:41:19 +01:00
parent 02aff8a8db
commit 8b6c212bf4
1 changed files with 2 additions and 1 deletions

View File

@ -665,7 +665,7 @@ class EventsController extends AppController {
} catch (Exception $e){
// catch errors like expired PGP keys
$this->log($e->getMessage());
return $e->getMessage();
// no need to return here, as we want to send out mails to the other users if GPG encryption fails for a single user
}
// If you wish to send multiple emails using a loop, you'll need
// to reset the email fields using the reset method of the Email component.
@ -816,6 +816,7 @@ class EventsController extends AppController {
} catch (Exception $e){
// catch errors like expired PGP keys
$this->log($e->getMessage());
// no need to return here, as we want to send out mails to the other users if GPG encryption fails for a single user
}
} else {
$bodyEncSig = $bodySigned;