This commit is contained in:
skeeter 2001-07-01 14:03:03 +00:00
parent 435ff9951a
commit 954571562d
3 changed files with 8 additions and 8 deletions

View File

@ -117,8 +117,8 @@
$thisminute = (int)$minute;
}
$phpgw->calendar->set_start($thisyear,$thismonth,$thisday,$thishour,$this->minute,0);
$phpgw->calendar->set_end($thisyear,$thismonth,$thisday,$thishour,$this->minute,0);
$phpgw->calendar->set_start($thisyear,$thismonth,$thisday,$thishour,$thisminute,0);
$phpgw->calendar->set_end($thisyear,$thismonth,$thisday,$thishour,$thisminute,0);
$phpgw->calendar->set_title('');
$phpgw->calendar->set_description('');
$phpgw->calendar->add_attribute('priority',2);

View File

@ -278,6 +278,10 @@ class calendar__
function event_init()
{
$this->event = CreateObject('calendar.calendar_item');
$this->event->start = new calendar_time;
$this->event->end = new calendar_time;
$this->event->mod = new calendar_time;
$this->event->recur_enddate = new calendar_time;
$this->add_attribute('owner',intval($this->user));
}

View File

@ -108,12 +108,8 @@ class calendar_ extends calendar__
if($this->stream->num_rows() > 0)
{
$this->event = CreateObject('calendar.calendar_item');
$this->event->start = new calendar_time;
$this->event->end = new calendar_time;
$this->event->mod = new calendar_time;
$this->event->recur_enddate = new calendar_time;
$this->event_init();
$this->stream->next_record();
// Load the calendar event data from the db into $event structure
// Use http://www.php.net/manual/en/function.mcal-fetch-event.php as the reference