PHP8 Warnings
This commit is contained in:
parent
b66ac59163
commit
149fa48573
@ -58,7 +58,7 @@ $setterminal = GETPOST('setterminal', 'int');
|
|||||||
$setcurrency = GETPOST('setcurrency', 'aZ09');
|
$setcurrency = GETPOST('setcurrency', 'aZ09');
|
||||||
|
|
||||||
if (empty($_SESSION["takeposterminal"])) {
|
if (empty($_SESSION["takeposterminal"])) {
|
||||||
if ($conf->global->TAKEPOS_NUM_TERMINALS == "1") {
|
if (getDolGlobalInt('TAKEPOS_NUM_TERMINALS') == "1") {
|
||||||
$_SESSION["takeposterminal"] = 1; // Use terminal 1 if there is only 1 terminal
|
$_SESSION["takeposterminal"] = 1; // Use terminal 1 if there is only 1 terminal
|
||||||
} elseif (!empty($_COOKIE["takeposterminal"])) {
|
} elseif (!empty($_COOKIE["takeposterminal"])) {
|
||||||
$_SESSION["takeposterminal"] = preg_replace('/[^a-zA-Z0-9_\-]/', '', $_COOKIE["takeposterminal"]); // Restore takeposterminal from previous session
|
$_SESSION["takeposterminal"] = preg_replace('/[^a-zA-Z0-9_\-]/', '', $_COOKIE["takeposterminal"]); // Restore takeposterminal from previous session
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user