From 72e4c0076072849db39670fec20b003e0a448162 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 18 Feb 2021 16:13:30 +0100 Subject: [PATCH] Fix showifmore --- htdocs/comm/action/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) {