diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index 8b852689b99..e0ded511928 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -1124,22 +1124,18 @@ if (empty($action) || $action == 'show_month') // View by month
// In loops, tmpday contains day nb in current month (can be zero or negative for days of previous month)
//var_dump($eventarray);
- for ($iter_week = 0; $iter_week < 6; $iter_week++)
- {
+ for ($iter_week = 0; $iter_week < 6; $iter_week++) {
echo "
\n";
- for ($iter_day = 0; $iter_day < 7; $iter_day++)
- {
- /* Show days before the beginning of the current month (previous month) */
- if ($tmpday <= 0)
- {
+ for ($iter_day = 0; $iter_day < 7; $iter_day++) {
+ if ($tmpday <= 0) {
+ /* Show days before the beginning of the current month (previous month) */
$style = 'cal_other_month cal_past';
- if ($iter_day == 6) $style .= ' cal_other_month_right';
+ if ($iter_day == 6) $style .= ' cal_other_month_right';
echo '
\n";
- } /* Show days after the current month (next month) */
- else {
+ } else {
+ /* Show days after the current month (next month) */
$style = 'cal_other_month';
if ($iter_day == 6) $style .= ' cal_other_month_right';
echo '
';
@@ -1169,8 +1165,8 @@ if (empty($action) || $action == 'show_month') // View by month
print '';
print '';
print '';
-} elseif ($action == 'show_week') // View by week
-{
+} elseif ($action == 'show_week') {
+ // View by week
$newparam = $param; // newparam is for birthday links
$newparam = preg_replace('/showbirthday=/i', 'showbirthday_=', $newparam); // To avoid replacement when replace day= is done
$newparam = preg_replace('/action=show_month&?/i', '', $newparam);
@@ -1186,8 +1182,7 @@ if (empty($action) || $action == 'show_month') // View by month
print '
';
print '
';
$i = 0;
- while ($i < 7)
- {
+ while ($i < 7) {
echo '