]> git.mxchange.org Git - friendica.git/blobdiff - include/datetime.php
Merge pull request #4195 from zeroadam/ContactSelector-#3878
[friendica.git] / include / datetime.php
index ee1dd1e6d3f9d18c09012b139a336713e6b0c82d..1c9510c3303bfab6b472f17023c0665e3cc2a68f 100644 (file)
@@ -536,7 +536,9 @@ function cal($y = 0, $m = 0, $links = null, $class = '')
        $o .= '</tr><tr>';
 
        while ($d <= $l) {
-               $started = (($dow == $f) && (!$started));
+               if (($dow == $f) && (! $started)) {
+                       $started = true;
+               }
 
                $today = (((isset($tddate)) && ($tddate == $d)) ? "class=\"today\" " : '');
                $o .= "<td $today>";