Home » Date and Time » Calendar » Bug #4694
Missing "optional" for parameter in Calendar::Month::Weekdays-Constructor
Details
| Request #4694 | Missing "optional" for parameter in Calendar::Month::Weekdays-Constructor |
|---|---|
| Submitted | 2005-06-28 12:09 UTC |
| From | jr at 0x42 dot com |
| Assigned | quipo |
| Status | Bogus |
| Package | Calendar |
| PHP Version | Irrelevant |
| OS | OpenBSD 3.6 |
| Roadmaps | (Not assigned) |
Comments
[2005-06-28 12:09 UTC] jr at 0x42 dot com
Description:
------------
The Calendar::Month::Weekdays-Constructor expects two Parameters, Year and Month. These Parameters are optional, but if you leave them out, PHP produces a warning.
Reproduce code:
---------------
Line 91 in Calendar/Month/Weekdays.php:
function Calendar_Month_Weekdays($y, $m, $firstDay=false)
should be fixed to smt. like this:
function Calendar_Month_Weekdays($y = NULL, $m = NULL, $firstDay=false)