]> git.mxchange.org Git - friendica.git/commitdiff
Revert assignment change in datetime
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 5 Jan 2018 03:51:38 +0000 (22:51 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 5 Jan 2018 03:51:38 +0000 (22:51 -0500)
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>";