Url can wrok without parameters

This commit is contained in:
Laurent Destailleur 2023-01-08 19:31:43 +01:00
parent 027ff49100
commit 18c959e578

View File

@ -37,6 +37,10 @@ $ref = GETPOST('ref', 'alpha');
$action = GETPOST('action', 'aZ09');
$dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09');
if (empty($id) && empty($ref)) {
$id = $user->id;
}
$object = new User($db);
if ($id > 0 || !empty($ref)) {
$result = $object->fetch($id, $ref, '', 1);