PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Date and Time » Calendar » Bug #1440

bug in Week class in setSelection

Details

Submitted2004-05-19 12:50 UTC
Fromkick_tisho at mail dot bg
Assignedquipo
StatusClosed
PackageCalendar
PHP Version4.3.4
OSWin 2000 Pro
Roadmaps(Not assigned)

Comments

[2004-05-19 12:50 UTC] kick_tisho at mail dot bg

Description:
------------
When i try to use Decorator Class with Week object i found the following bug in Week.php in class CALENDAR_WEEK
in method setSelection.

Reproduce code:
---------------
foreach ($this->children as $key => $child) {
if ($child->thisDay() == $sDate->thisDay() &&
$child->thisMonth() == $sDate->thisMonth()) {
$this->children[$key]->setSelected();

must finish with

$sDate->setSelected();
$this->children[$key] = $sDate;

instead of
$this->children[$key]->setSelected();

Expected result:
----------------
the error was

Fatal error: Call to undefined function: getentry() in P:\winCVS\projectname\calend\views\week.php on line 62