@ -5360,8 +5360,8 @@ function getAllAttachment($postId)
/**
* Delete the all the attachments from the DB and the file according to the post's id or attach id(optional).
*
* @param int $post_id
* @param int $id_attach
* @return int
@ -42,7 +42,6 @@ function hidecontent(content){
// The section (tabs).
$this_section = SECTION_COURSES;
$nameTools = get_lang('Forums');
$_course = api_get_course_info();
$sessionId = api_get_session_id();