Update list.php

This commit is contained in:
Frédéric FRANCE 2016-01-05 17:33:54 +01:00
parent f6fead7403
commit a0b3cdbd21

View File

@ -251,7 +251,7 @@ $out='';
$typeleaves=$holiday->getTypes(1,1);
foreach($typeleaves as $key => $val)
{
$nb_type = $holiday->getCPforUser($user->id, $val['rowid']);
$nb_type = $holiday->getCPforUser($user_id, $val['rowid']);
$nb_holiday += $nb_type;
$out .= ' - '.$val['label'].': <strong>'.($nb_type?price2num($nb_type):0).'</strong><br>';
}