function updateStatusOfUser($a_ass_id, $a_user_id, $a_status) { global $ilDB; $ilDB->manipulateF("UPDATE rep_robj_xeph_ass_stat " . "SET status = %s, status_time= %s " . "WHERE ass_id = %s AND user_id = %s AND status <> %s ", array("text", "timestamp", "integer", "integer", "text"), array($a_status, ilUtil::now(), $a_ass_id, $a_user_id, $a_status)); $ass = new ilEphAssignment($a_ass_id); $eph = new ilObjEphorus($ass->getEphorusRefId()); $eph->updateUserStatus($a_user_id); }