diff --git a/calendar/inc/class.calendar_so.inc.php b/calendar/inc/class.calendar_so.inc.php index e7cf74a510..83cf700852 100644 --- a/calendar/inc/class.calendar_so.inc.php +++ b/calendar/inc/class.calendar_so.inc.php @@ -856,7 +856,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]; @@ -883,6 +886,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(); }