mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #32665 from hregis/fix_20_avoid_warnings_php
FIX avoid php warning
This commit is contained in:
commit
8d28649090
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user