diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2013-12-29 16:33:09 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2013-12-29 16:33:09 +0100 |
| commit | 808c54fa89f556e6f4701d4f8c6c418393ddfc13 (patch) | |
| tree | 928d41159e537f59751e9fd5e3a08945c7174cf9 /phpBB/includes/acp/acp_users.php | |
| parent | 555cd025b2d53e681dd02756f7de3ba0bf7df321 (diff) | |
| download | forums-808c54fa89f556e6f4701d4f8c6c418393ddfc13.tar forums-808c54fa89f556e6f4701d4f8c6c418393ddfc13.tar.gz forums-808c54fa89f556e6f4701d4f8c6c418393ddfc13.tar.bz2 forums-808c54fa89f556e6f4701d4f8c6c418393ddfc13.tar.xz forums-808c54fa89f556e6f4701d4f8c6c418393ddfc13.zip | |
[feature/passwords] Get rid of unneeded code complexity
Simplified a little bit of code as pointed out by imkingdavid on github.
PHPBB3-11610
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
| -rw-r--r-- | phpBB/includes/acp/acp_users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 8a3c7eabcc..d77152e0cf 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -829,7 +829,7 @@ class acp_users // Which updates do we need to do? $update_username = ($user_row['username'] != $data['username']) ? $data['username'] : false; - $update_password = ($data['new_password'] && !$passwords_manager->check($data['new_password'], $user_row['user_password'])) ? true : false; + $update_password = $data['new_password'] && !$passwords_manager->check($data['new_password'], $user_row['user_password']); $update_email = ($data['email'] != $user_row['user_email']) ? $data['email'] : false; if (!sizeof($error)) |
