"fixed not working status change of participants of type email ('e')"

This commit is contained in:
Ralf Becker 2009-03-24 08:06:05 +00:00
parent 3687395dab
commit 9d55dfa69e

View File

@ -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();
}