Hi Folks,
When I execute the code:I get the following warning, even though the code works:Is this an incorrect way to set the groups to specifically group 2 (remove any others) and unblock the user, or should there be an update method that only updates the values being changed?
Is this a bug?
When I execute the code:
Code:
$userData['groups'] = array('2'); $userData['block'] = 0; $req_user->bind($userData); $req_user->save(true);
Code:
PHP Warning: Undefined array key "password2" in .../public_html/libraries/src/User/User.php on line 635
Is this a bug?
Statistics: Posted by neo314 — Sat Feb 24, 2024 9:52 pm