mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Fixes for current calendar structure.
This commit is contained in:
parent
5f539b912a
commit
3d4251a1c7
@ -20,16 +20,8 @@
|
|||||||
$event = $phpgw->calendar->fetch_event($id);
|
$event = $phpgw->calendar->fetch_event($id);
|
||||||
|
|
||||||
reset($event->participants);
|
reset($event->participants);
|
||||||
$participating = False;
|
|
||||||
for($j=0;$j<count($event->participants);$j++)
|
|
||||||
{
|
|
||||||
if($event->participants[$j] == $owner)
|
|
||||||
{
|
|
||||||
$participating = True;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if($participating == False)
|
if(!$event->participants[$owner])
|
||||||
{
|
{
|
||||||
echo '<center>The user '.$phpgw->common->grab_owner_name($owner).' is not participating in this event!</center>';
|
echo '<center>The user '.$phpgw->common->grab_owner_name($owner).' is not participating in this event!</center>';
|
||||||
$phpgw->common->footer();
|
$phpgw->common->footer();
|
||||||
@ -43,8 +35,6 @@
|
|||||||
$phpgw->common->phpgw_exit();
|
$phpgw->common->phpgw_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
reset($event->participants);
|
|
||||||
|
|
||||||
$freetime = $phpgw->calendar->datetime->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $phpgw->calendar->datetime->tz_offset);
|
$freetime = $phpgw->calendar->datetime->localdates(mktime(0,0,0,$event->start->month,$event->start->mday,$event->start->year) - $phpgw->calendar->datetime->tz_offset);
|
||||||
echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$event->participants);
|
echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$event->participants);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user