diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index b603967c52f..0f4ea9faf9c 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -474,7 +474,7 @@ if (empty($action) || $action == 'show_month') // View by month { $style='cal_other_month'; echo ' '; - show_day_events ($db, $max_day_in_prev_month + $tmpday, $prev_month, $prev_year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $newparam); + show_day_events ($db, $max_day_in_prev_month + $tmpday, $prev_month, $prev_year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $param); echo " \n"; } /* Show days of the current month */ @@ -490,7 +490,7 @@ if (empty($action) || $action == 'show_month') // View by month $style='cal_current_month'; echo ' '; - show_day_events($db, $tmpday, $month, $year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $newparam); + show_day_events($db, $tmpday, $month, $year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $param); echo " \n"; } /* Show days after the current month (next month) */ @@ -498,7 +498,7 @@ if (empty($action) || $action == 'show_month') // View by month { $style='cal_other_month'; echo ' '; - show_day_events($db, $tmpday - $max_day_in_month, $next_month, $next_year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $newparam); + show_day_events($db, $tmpday - $max_day_in_month, $next_month, $next_year, $month, $style, $eventarray, $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW, $maxlength, $param); echo "\n"; } $tmpday++; @@ -519,7 +519,7 @@ else // View by day echo " \n"; echo " \n"; echo ' '; - show_day_events ($db, $day, $month, $year, $month, $style, $eventarray, 0, 80, $newparam, 1, 300); + show_day_events ($db, $day, $month, $year, $month, $style, $eventarray, 0, 80, $param, 1, 300); echo "\n"; echo " \n"; echo ''; @@ -561,7 +561,11 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa print ''; print '
'; - print ''; + print ''; if ($showinfo) print dol_print_date($curtime,'daytext'); else print dol_print_date($curtime,'%d'); print '';