From 165a5d6e0a64d977d02bd538b339a6dc9e6afd52 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 30 Apr 2010 09:29:21 +0000 Subject: [PATCH] unset and at the end of processing loop, as they are used as indicator, that the entry is an hooked-app-entry; some codeformatting --- calendar/inc/class.calendar_uilist.inc.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index 63ce9e5b85..1fd6f624d7 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -397,17 +397,19 @@ class calendar_uilist extends calendar_ui $event['app'] = $app; $event['app_id'] = $app_id; } - elseif ($event['recur_type'] != MCAL_RECUR_NONE) - { - $event['edit_link'] = "edit_series({$event['id']}, {$event['start']});return false;"; - } - else - { + elseif ($event['recur_type'] != MCAL_RECUR_NONE) + { + $event['edit_link'] = "edit_series({$event['id']}, {$event['start']});return false;"; + } + else + { $view_link = egw::link('/index.php',array('menuaction'=>'calendar.calendar_uiforms.edit','cal_id'=>$event['id'],'date'=>$this->bo->date2string($event['start']))); $event['edit_link'] = $this->popup($view_link).'; return false;'; - } + } $rows[] = $event; + unset($app); + unset($app_id); } $wv=0; $dv=0; @@ -602,6 +604,8 @@ class calendar_uilist extends calendar_ui $msg = lang('Timesheet entries created for '); break; } + unset($app); + unset($app_id); } return ($failure == 0);