mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix json_decode requires bool for arg2 fixes PhanTypeMismatchArgumentInternal
This commit is contained in:
parent
95a7800115
commit
2a534539cb
|
|
@ -172,7 +172,7 @@ if (empty($reshook) && (GETPOST('removedassigned') || GETPOST('removedassigned')
|
|||
$idtoremove = GETPOST('removedassigned');
|
||||
|
||||
if (!empty($_SESSION['assignedtouser'])) {
|
||||
$tmpassigneduserids = json_decode($_SESSION['assignedtouser'], 1);
|
||||
$tmpassigneduserids = json_decode($_SESSION['assignedtouser'], true);
|
||||
} else {
|
||||
$tmpassigneduserids = array();
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ if (empty($reshook) && (GETPOST('removedassignedresource') || GETPOST('removedas
|
|||
$idtoremove = GETPOST('removedassignedresource');
|
||||
|
||||
if (!empty($_SESSION['assignedtoresource'])) {
|
||||
$tmpassignedresourceids = json_decode($_SESSION['assignedtoresource'], 1);
|
||||
$tmpassignedresourceids = json_decode($_SESSION['assignedtoresource'], true);
|
||||
} else {
|
||||
$tmpassignedresourceids = array();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user