Url can wrok without parameters
This commit is contained in:
parent
027ff49100
commit
18c959e578
@ -37,6 +37,10 @@ $ref = GETPOST('ref', 'alpha');
|
|||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09');
|
$dol_openinpopup = GETPOST('dol_openinpopup', 'aZ09');
|
||||||
|
|
||||||
|
if (empty($id) && empty($ref)) {
|
||||||
|
$id = $user->id;
|
||||||
|
}
|
||||||
|
|
||||||
$object = new User($db);
|
$object = new User($db);
|
||||||
if ($id > 0 || !empty($ref)) {
|
if ($id > 0 || !empty($ref)) {
|
||||||
$result = $object->fetch($id, $ref, '', 1);
|
$result = $object->fetch($id, $ref, '', 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user