[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: calendar/inc hook_email.inc.php,1.3.2.3,1.3.2.4
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: calendar/inc hook_email.inc.php,1.3.2.3,1.3.2.4 |
Date: |
Fri, 30 May 2003 13:46:02 -0400 |
Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv28170
Modified Files:
Tag: Version-0_9_14-branch
hook_email.inc.php
Log Message:
fix for bug #3427: you have no permision to read this entry in mail-notification
the calendar-id is only send on NEW or CHANGED dates not for the other notify
(as it does not make sense there) the hook was not checking if there's a
calendar_id
Index: hook_email.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/hook_email.inc.php,v
retrieving revision 1.3.2.3
retrieving revision 1.3.2.4
diff -C2 -r1.3.2.3 -r1.3.2.4
*** hook_email.inc.php 24 Nov 2002 01:45:57 -0000 1.3.2.3
--- hook_email.inc.php 30 May 2003 17:45:59 -0000 1.3.2.4
***************
*** 25,51 ****
unset($d1);
! $GLOBALS['phpgw']->translation->add_app('calendar');
!
! $cal = CreateObject('calendar.uicalendar');
! //echo "Event ID: $calendar_id<br>\n";
!
! $event = $cal->bo->read_entry($calendar_id);
!
! echo $cal->timematrix(
! Array(
! 'date' =>
$GLOBALS['phpgw']->datetime->localdates(mktime(0,0,0,$event['start']['month'],$event['start']['mday'],$event['start']['year'])
- $phpgw->calendar->tz_offset),
! 'starttime' => $cal->bo->splittime('000000',False),
! 'endtime' => 0,
! 'participants' => $event['participants'])
! ) .
!
! '</td></tr><tr><td>' .
!
! $cal->view_event($event) .
!
! '</td></tr><tr><td align="center">' .
!
! $cal->get_response($calendar_id);
!
! unset($cal); unset($event);
?>
--- 25,54 ----
unset($d1);
! if ($calendar_id)
! {
! $GLOBALS['phpgw']->translation->add_app('calendar');
!
! $cal = CreateObject('calendar.uicalendar');
! //echo "Event ID: $calendar_id<br>\n";
!
! if ($event = $cal->bo->read_entry($calendar_id))
! {
! echo $cal->timematrix(
! Array(
! 'date' =>
$GLOBALS['phpgw']->datetime->localdates(mktime(0,0,0,$event['start']['month'],$event['start']['mday'],$event['start']['year'])
- $phpgw->calendar->tz_offset),
! 'starttime' =>
$cal->bo->splittime('000000',False),
! 'endtime' => 0,
! 'participants' =>
$event['participants'])
! ) .
!
! '</td></tr><tr><td>' .
!
! $cal->view_event($event) .
!
! '</td></tr><tr><td align="center">' .
!
! $cal->get_response($calendar_id);
! }
! unset($cal); unset($event);
! }
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: calendar/inc hook_email.inc.php,1.3.2.3,1.3.2.4,
Ralf Becker <address@hidden> <=