1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[feature/passwords] Get rid of unneeded code complexity

Simplified a little bit of code as pointed out by imkingdavid on github.

PHPBB3-11610
This commit is contained in:
Marc Alexander
2013-12-29 16:33:09 +01:00
parent 555cd025b2
commit 808c54fa89
4 changed files with 7 additions and 15 deletions

View File

@@ -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))