Fix showifmore

This commit is contained in:
Laurent Destailleur 2021-02-18 16:13:30 +01:00
parent 041a7f54e3
commit 72e4c00760

View File

@ -1684,7 +1684,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
print "\n";
print '<!-- start event '.$i.' -->'."\n";
$morecss = '';
if ($i >= $maxprint) {
if ($maxprint && $i >= $maxprint) {
$morecss = 'showifmore';
}
if ($event->type == 'holiday' && !GETPOST('check_birthday')) {