EN - Bugreportcalendar shows sometimes unnecessary rows


28.09.2009, 22:24 - iflow - webSPELL god - 3108 Posts
The Webspell calendar (Clan & SE Version) shows sometimes one unnecessary row.

Solution:

Open calendar.php

Search:
Code:
1.
$end = ($start_day > 4)? 6:5;


Replace with:
Code:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
 $days = date("t", mktime(0, 0, 0, $mon, 1, $year)); //days of selected month
    switch($days) {
        case 28: $end = ($start_day > 1) ? 5:4;
                    break;
        case 29: $end = 5;
                    break;
        case 30: $end = ($start_day == 7) ? 6:5;
                    break;
        case 31: $end = ($start_day > 5) ? 6:5;
                    break;
        default: $end = 6;
    } 


[URL=http://iflow.anju-web.com/index.php?site=files]webSPELL [b]Addons[/b] & webSPELL [b]Mods[/b][/URL] [COLOR=red][ [url=http://www.savage2.com/en/download.php][b]Savage2[/b] - A Tortured Soul -> FOR FREE!!![/URL] ] [/COLOR]