From 85eebd426d9c42304f43c20ad01b11ed1b28b5c9 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 19 Jan 2016 00:42:27 +0000 Subject: [PATCH] Fix fatal error when copying an event --- calendar/inc/class.calendar_uiforms.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 30019e5c44..6b145468a7 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -597,13 +597,13 @@ class calendar_uiforms extends calendar_ui // Clear participant stati foreach($event['participant_types'] as $type => &$participants) { - foreach($participants as $id => &$response) + foreach($participants as $id => &$p_response) { if($type == 'u' && $id == $event['owner']) continue; - calendar_so::split_status($response, $quantity, $role); + calendar_so::split_status($p_response, $quantity, $role); // if resource defines callback for status of new status (eg. Resources app acknowledges direct booking acl), call it $status = isset($this->bo->resources[$type]['new_status']) ? ExecMethod($this->bo->resources[$type]['new_status'],$id) : 'U'; - $response = calendar_so::combine_status($status,$quantity,$role); + $p_response = calendar_so::combine_status($status,$quantity,$role); } }