Merge pull request #3003 from GPCsolutions/dolibarr-3001

Fix #3001: the current code needs an array, not an object
This commit is contained in:
Juanjo Menent 2015-06-10 21:12:02 +02:00
commit 4d0734950d

View File

@ -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)
{