fix declare variable and format code -refs BT#12665 #1917

pull/2487/head
Alex Aragon 9 years ago
parent 0fff2cbfa9
commit 5151196482
  1. 7
      main/course_progress/thematic_controller.php

@ -204,7 +204,7 @@ class ThematicController
$list = $thematic->get_thematic_list(); $list = $thematic->get_thematic_list();
$item = array(); $item = array();
$listFinish = array();
foreach ($list as $theme) { foreach ($list as $theme) {
$dataPlan = $thematic->get_thematic_plan_data($theme['id']); $dataPlan = $thematic->get_thematic_plan_data($theme['id']);
if (!empty($dataPlan)) { if (!empty($dataPlan)) {
@ -220,16 +220,11 @@ class ThematicController
$theme['thematic_plan'] = $item; $theme['thematic_plan'] = $item;
} }
$dataAdvance = $thematic->get_thematic_advance_by_thematic_id($theme['id']); $dataAdvance = $thematic->get_thematic_advance_by_thematic_id($theme['id']);
//var_dump($dataAdvance);
if (!empty($dataAdvance)) { if (!empty($dataAdvance)) {
$theme['thematic_advance'] = $dataAdvance; $theme['thematic_advance'] = $dataAdvance;
} }
$listFinish[] = $theme; $listFinish[] = $theme;
//var_dump($theme['thematic_advance']);
//exit();
} }
$view = new Template('', false, false, false, true, false, false); $view = new Template('', false, false, false, true, false, false);

Loading…
Cancel
Save