Detail do find the file in table "files": public static function show_activity_in_ilm ($iassign_statement_activity_item, $student_answer, $enderecoPOST, $view_teacherfileversion): * Em: foreach ($files as $value): // To be revised? 'files.filename' has '.' is only path (not the file) added: "break" after found file (with "if ($value->get_filename() != '.')")