Merge pull request #3003 from GPCsolutions/dolibarr-3001
Fix #3001: the current code needs an array, not an object
This commit is contained in:
commit
4d0734950d
@ -215,7 +215,7 @@ if ($action == 'add')
|
||||
$object->duree=((float) (GETPOST('dureehour') * 60) + (float) GETPOST('dureemin')) * 60;
|
||||
|
||||
$listofuserid=array();
|
||||
if (! empty($_SESSION['assignedtouser'])) $listofuserid=json_decode($_SESSION['assignedtouser']);
|
||||
if (! empty($_SESSION['assignedtouser'])) $listofuserid=json_decode($_SESSION['assignedtouser'], true);
|
||||
$i=0;
|
||||
foreach($listofuserid as $key => $value)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user