Catch exception on delete of Confirm_address in a plugin

This commit is contained in:
Mikael Nordfeldth 2016-03-02 15:37:47 +01:00
parent 175b7e8541
commit a262c16f06

View File

@ -321,7 +321,11 @@ class EmailregisterAction extends Action
common_init_language(); common_init_language();
if (!empty($this->confirmation)) { if (!empty($this->confirmation)) {
try {
$this->confirmation->delete(); $this->confirmation->delete();
} catch (ServerException $e) {
common_log(LOG_ERR, $e->getMessage());
}
} }
Event::handle('EndRegistrationTry', array($this)); Event::handle('EndRegistrationTry', array($this));