aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-02-09 09:31:31 -0500
committercash <cash.costello@gmail.com>2013-02-09 09:31:31 -0500
commit54e9ea8423085ac50f0955480b1671295e851eef (patch)
treedc9f60e74262cc60322e55ef3f0e0b37221dd8c1
parentb78bbc030f432276516d693de7cddcea05eff807 (diff)
downloadelgg-54e9ea8423085ac50f0955480b1671295e851eef.tar.gz
elgg-54e9ea8423085ac50f0955480b1671295e851eef.tar.bz2
removed unnecessary @var since we have instanceof test
-rw-r--r--engine/lib/users.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index ffff4aaa5..19f4e434d 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -677,8 +677,6 @@ function send_new_password_request($user_guid) {
$user = get_entity($user_guid);
if ($user instanceof ElggUser) {
- /* @var ElggUser $user */
-
// generate code
$code = generate_random_cleartext_password();
$user->setPrivateSetting('passwd_conf_code', $code);
@@ -711,8 +709,6 @@ function force_user_password_reset($user_guid, $password) {
$user = get_entity($user_guid);
if ($user instanceof ElggUser) {
- /* @var ElggUser $user */
-
$salt = generate_random_cleartext_password(); // Reset the salt
$user->salt = $salt;
@@ -741,7 +737,6 @@ function execute_new_password_request($user_guid, $conf_code) {
$user = get_entity($user_guid);
if ($user instanceof ElggUser) {
- /* @var ElggUser $user */
$saved_code = $user->getPrivateSetting('passwd_conf_code');
if ($saved_code && $saved_code == $conf_code) {