]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Catch exception on delete of Confirm_address in a plugin
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 2 Mar 2016 14:37:47 +0000 (15:37 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 2 Mar 2016 14:37:47 +0000 (15:37 +0100)
plugins/EmailRegistration/actions/emailregister.php

index 7fa2aa22cf2efe06d0eae3c0858fc8043606074c..d10b65c387f476c3422123f6934a338e033297e8 100644 (file)
@@ -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));