diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index b329cffda35234e92c71b51ab1954b18b58ccdd7..751b24a9d1bf6c9889b1103934b85e11f6e26d4a 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -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>';
 }