Fix for bug # 458995.

This commit is contained in:
skeeter 2001-09-28 02:18:55 +00:00
parent b6eb7c3168
commit bf62acc4b5

View File

@ -81,18 +81,6 @@
}
return $sday;
break;
case 'Sunday':
$this->days = Array(
0 => 'Sun',
1 => 'Mon',
2 => 'Tue',
3 => 'Wed',
4 => 'Thu',
5 => 'Fri',
6 => 'Sat'
);
return mktime(2,0,0,$month,$day - $weekday,$year);
break;
case 'Monday':
$this->days = Array(
0 => 'Mon',
@ -117,6 +105,19 @@
}
return $sday - (60 * 60 * 2);
break;
case 'Sunday':
default:
$this->days = Array(
0 => 'Sun',
1 => 'Mon',
2 => 'Tue',
3 => 'Wed',
4 => 'Thu',
5 => 'Fri',
6 => 'Sat'
);
return mktime(2,0,0,$month,$day - $weekday,$year);
break;
}
}