From a2e1faa92ee4c9b9e23c47448fae8474d3d4f409 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 6 May 2010 18:36:32 +0200 Subject: [PATCH] Fixing URL link --- main/calendar/agenda.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php index 8049e29e22..60617e2ab1 100755 --- a/main/calendar/agenda.inc.php +++ b/main/calendar/agenda.inc.php @@ -2152,11 +2152,12 @@ function display_agenda_items() if (!$is_repeated && (api_is_allowed_to_edit(false,true) OR (api_get_course_setting('allow_user_edit_agenda') && !api_is_anonymous()))) { - if( ! (api_is_course_coach() && !api_is_element_in_the_session(TOOL_AGENDA, $myrow['id'] ) ) ) - { // a coach can only delete an element belonging to his session - $mylink = api_get_self().'?'.api_get_cidreq().'&origin='.Security::remove_XSS($_GET['origin']).'&id='.$myrow['id']; + if( ! (api_is_course_coach() && !api_is_element_in_the_session(TOOL_AGENDA, $myrow['id'] ) ) ) { + // a coach can only delete an element belonging to his session + $mylink = api_get_self().'?'.api_get_cidreq().'&origin='.Security::remove_XSS($_GET['origin']).'&id='.$myrow['id'].'&'; echo ''; // edit + echo ''; echo Display::return_icon('edit.gif', get_lang('ModifyCalendarItem'))."";