From 0261e3206d8d74aa397b5a0d15d51bcf9c13fc4f Mon Sep 17 00:00:00 2001 From: skeeter Date: Wed, 15 Aug 2001 02:25:26 +0000 Subject: [PATCH] Fixed the displaying of the delete button on the edit page. --- calendar/inc/class.uicalendar.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 1f28934920..bcd62528e7 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -2932,10 +2932,10 @@ $p->set_var('submit_button',lang('Submit')); - if ($cal_id > 0) + if ($event['id'] > 0) { $var = Array( - 'action_url_button' => $this->page('delete','&cal_id='.$cal_id), + 'action_url_button' => $this->page('delete','&cal_id='.$event['id']), 'action_text_button' => lang('Delete'), 'action_confirm_button' => "onClick=\"return confirm('".lang("Are you sure\\nyou want to \\ndelete this entry?\\n\\nThis will delete\\nthis entry for all users.")."')\"", 'action_extra_field' => ''