aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/users.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 283f5efcc..fd8c00073 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1115,7 +1115,7 @@
throw new RegistrationException(elgg_echo('registration:invalidchars'));
$result = true;
- return $result = trigger_plugin_hook('registeruser:validate:username', 'all', array('username' => $username), $result);
+ return trigger_plugin_hook('registeruser:validate:username', 'all', array('username' => $username), $result);
}
/**
@@ -1129,7 +1129,7 @@
if (strlen($password)<6) throw new RegistrationException(elgg_echo('registration:passwordtooshort'));
$result = true;
- return $result = trigger_plugin_hook('registeruser:validate:password', 'all', array('password' => $password), $result);
+ return trigger_plugin_hook('registeruser:validate:password', 'all', array('password' => $password), $result);
}
/**
@@ -1145,7 +1145,7 @@
// Got here, so lets try a hook (defaulting to ok)
$result = true;
- return $result = trigger_plugin_hook('registeruser:validate:email', 'all', array('email' => $address), $result);
+ return trigger_plugin_hook('registeruser:validate:email', 'all', array('email' => $address), $result);
}
/**