Merge pull request #32665 from hregis/fix_20_avoid_warnings_php

FIX avoid php warning
This commit is contained in:
Laurent Destailleur 2025-01-15 14:16:25 +01:00 committed by GitHub
commit 8d28649090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,9 @@ if ($user->id != $id && !$canreaduser) {
accessforbidden();
}
$caneditpasswordandsee = false;
$caneditpasswordandsend = false;
// Define value to know what current user can do on properties of edited user
if ($id > 0) {
// $user is the current logged user, $id is the user we want to edit