FIX object $user is not defined

This commit is contained in:
Regis Houssin 2023-02-18 16:24:56 +01:00
parent 992fe1286d
commit 5b81880b97

View File

@ -2426,7 +2426,7 @@ class User extends CommonObject
$url = $urlwithroot.'/user/passwordforgotten.php?action=validatenewpassword';
$url .= '&username='.urlencode($this->login)."&passworduidhash=".urlencode(dol_hash($password.'-'.$this->id.'-'.$dolibarr_main_instance_unique_id));
if (!empty($conf->multicompany->enabled)) {
$url .= '&entity='.(!empty($user->entity) ? $user->entity : 1);
$url .= '&entity='.(!empty($this->entity) ? $this->entity : 1);
}
$msgishtml = 1;