From 9b2fe727c3e53756fb78671ac4dd16469c56f052 Mon Sep 17 00:00:00 2001 From: skeeter Date: Thu, 24 May 2001 11:23:29 +0000 Subject: [PATCH] Fix for deleting events. --- calendar/delete.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/delete.php b/calendar/delete.php index 8ccf12d2d5..8514e072ad 100755 --- a/calendar/delete.php +++ b/calendar/delete.php @@ -21,16 +21,16 @@ $phpgw_info['flags'] = $phpgw_flags; include('../header.inc.php'); - $cal_stream = $phpgw->calendar->open('INBOX',$owner,''); - $event = $phpgw->calendar->fetch_event($cal_stream,intval($id)); + $phpgw->calendar->open('INBOX',$owner,''); + $event = $phpgw->calendar->fetch_event(intval($id)); if(($id > 0) && ($event->owner == $owner) && ($phpgw->calendar->check_perms(PHPGW_ACL_DELETE) == True)) { $thisyear = $event->start->year; $thismonth = $event->start->month; $thisday = $event->start->mday; - $phpgw->calendar->delete_event($cal_stream,intval($id)); - $phpgw->calendar->expunge($cal_stream); + $phpgw->calendar->delete_event(intval($id)); + $phpgw->calendar->expunge(); } Header('Location: '.$phpgw->link('/'.$phpgw_info['flags']['currentapp'].'/index.php','year='.$thisyear.'&month='.$thismonth.'&day='.$thisday.'&owner='.$owner));