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