Fix: remove unused $_COOKIE['DOLENTITY']
This commit is contained in:
parent
764c7ac792
commit
63b8835885
@ -160,10 +160,6 @@ else if (defined('DOLENTITY') && is_numeric(DOLENTITY)) // For public page wit
|
|||||||
{
|
{
|
||||||
$conf->entity = DOLENTITY;
|
$conf->entity = DOLENTITY;
|
||||||
}
|
}
|
||||||
else if (!empty($_COOKIE['DOLENTITY'])) // For other application with MultiCompany module (TODO: We should remove this. entity to use should never be stored into client side)
|
|
||||||
{
|
|
||||||
$conf->entity = $_COOKIE['DOLENTITY'];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sanitize entity
|
// Sanitize entity
|
||||||
if (! is_numeric($conf->entity)) $conf->entity=1;
|
if (! is_numeric($conf->entity)) $conf->entity=1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user