From: hypeJunction Date: Mon, 12 Dec 2011 22:31:26 +0000 (+0100) Subject: Fixed #4198 uservalidationbyemail respects the return value of the register,user... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2aa0e3846b60a44c6f2dbfe2f9a690776533dca3;p=lorea%2Felgg.git Fixed #4198 uservalidationbyemail respects the return value of the register,user hook --- diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php index 8de5d0522..576e12247 100644 --- a/mod/uservalidationbyemail/start.php +++ b/mod/uservalidationbyemail/start.php @@ -69,6 +69,12 @@ function uservalidationbyemail_disable_new_user($hook, $type, $value, $params) { return; } + // another plugin is requesting that registration be terminated + // no need for uservalidationbyemail + if (!$value) { + return $value; + } + // disable user to prevent showing up on the site // set context so our canEdit() override works elgg_push_context('uservalidationbyemail_new_user');