diff --git a/include/datetime.php b/include/datetime.php index ee1dd1e6d..1c9510c33 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -536,7 +536,9 @@ function cal($y = 0, $m = 0, $links = null, $class = '') $o .= ''; while ($d <= $l) { - $started = (($dow == $f) && (!$started)); + if (($dow == $f) && (! $started)) { + $started = true; + } $today = (((isset($tddate)) && ($tddate == $d)) ? "class=\"today\" " : ''); $o .= "";