diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index aebd0039795..95306a9d611 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -1684,7 +1684,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa print "\n"; print ''."\n"; $morecss = ''; - if ($i >= $maxprint) { + if ($maxprint && $i >= $maxprint) { $morecss = 'showifmore'; } if ($event->type == 'holiday' && !GETPOST('check_birthday')) {