From 50624e592916c0775936c67dd3d92167a63ed474 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Mar 2009 08:07:53 +0000 Subject: [PATCH] "fixed not working status change of participants of type email ('e')" --- calendar/inc/class.calendar_so.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index 5da1c67944..bb8201dca2 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -853,7 +853,10 @@ ORDER BY cal_user_type, cal_usre_id TENTATIVE => 'T', ACCEPTED => 'A' ); - if (!(int)$cal_id || !(int)$user_id) return false; + if (!(int)$cal_id || !(int)$user_id && $user_type != 'e') + { + return false; + } if (is_numeric($status)) $status = $status_code_short[$status]; @@ -880,6 +883,8 @@ ORDER BY cal_user_type, cal_usre_id 'cal_status' => $status, ),$where,__LINE__,__FILE__,'calendar'); } + $ret = $this->db->affected_rows(); + error_log(__METHOD__."($cal_id,$user_type,$user_id,$status,$recur_date) = $ret"); return $this->db->affected_rows(); }