chimeric / dokuwiki-plugin-wikicalendar

http://dokuwiki.org/plugin:wikicalendar
GNU General Public License v2.0
10 stars 8 forks source link

Wrong counting of blank fields #20

Open Hesslon opened 11 years ago

Hesslon commented 11 years ago

In line 277 in the snytax.php file, there is something wrong with the adding of blank fields. Its just adding one field to much so that there is a blankfield on the whole tableend.

I just changed the loop:

        // fill remaining days with blanks 
        if($i == $this->numDays && $wd < 7) {
            while($wd<6) {
                $out .= '<td class="blank">&nbsp;</td>';
                $wd++;
            }
            $out .= '</tr>';
        }

Have a good one.

Hesslon commented 11 years ago

Excuse me, line 2 has to be changed to 6 as well.