diff --git a/inc/auth.php b/inc/auth.php index 5316ca38261aec2a92f159cbb360354c2a5419e3..0c005635daa1168e42fc9fe925e9b82a24cdc7a3 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -656,7 +656,7 @@ function updateprofile() { if ($_POST['fullname'] != $INFO['userinfo']['name'] && $auth->canDo('modName')) $changes['name'] = $_POST['fullname']; if ($_POST['email'] != $INFO['userinfo']['mail'] && $auth->canDo('modMail')) $changes['mail'] = $_POST['email']; - if (!empty($_POST['newpass']) && $auth->canDo['modPass']) $changes['pass'] = $_POST['newpass']; + if (!empty($_POST['newpass']) && $auth->canDo('modPass')) $changes['pass'] = $_POST['newpass']; if (!count($changes)) {