diff --git a/main/course_progress/thematic_controller.php b/main/course_progress/thematic_controller.php index b4ca88929b..b765e3ebd6 100755 --- a/main/course_progress/thematic_controller.php +++ b/main/course_progress/thematic_controller.php @@ -246,6 +246,9 @@ class ThematicController case 'export_single_thematic': $theme = $thematic->get_thematic_list($thematic_id); $plans = $thematic->get_thematic_plan_data($theme['id']); + $plans = array_filter($plans, function ($plan) { + return !empty($plan['description']); + }); $advances = $thematic->get_thematic_advance_by_thematic_id($theme['id']); $view = new Template('', false, false, false, true, false, false);