From: Mikael Nordfeldth Date: Wed, 2 Mar 2016 14:37:47 +0000 (+0100) Subject: Catch exception on delete of Confirm_address in a plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a262c16f062837f1b863ee7b09e4edda530eb7d1;p=quix0rs-gnu-social.git Catch exception on delete of Confirm_address in a plugin --- diff --git a/plugins/EmailRegistration/actions/emailregister.php b/plugins/EmailRegistration/actions/emailregister.php index 7fa2aa22cf..d10b65c387 100644 --- a/plugins/EmailRegistration/actions/emailregister.php +++ b/plugins/EmailRegistration/actions/emailregister.php @@ -321,7 +321,11 @@ class EmailregisterAction extends Action common_init_language(); if (!empty($this->confirmation)) { - $this->confirmation->delete(); + try { + $this->confirmation->delete(); + } catch (ServerException $e) { + common_log(LOG_ERR, $e->getMessage()); + } } Event::handle('EndRegistrationTry', array($this));