From 8b6c212bf43fadd06b3f9b6fbd2c78d2d9a7bdc7 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Tue, 30 Oct 2012 12:41:19 +0100 Subject: [PATCH] fixes bug when alerting and a single gpg key is giving problems --- app/Controller/EventsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index a4f780b35..4979c8984 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -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;