Browse Source

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

Alex Aragon 7 years ago
parent
commit
5151196482

+ 1 - 6
main/course_progress/thematic_controller.php

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

+ 3 - 3
main/template/default/course_progress/pdf_general_thematic.tpl

@@ -3,13 +3,13 @@
     <thead>
         <tr>
             <th width="30%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
-                {{ "Thematic" | get_lang }}
+                {{ "Thematic"|get_lang }}
             </th>
             <th width="50%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
-                {{ "ThematicPlan" | get_lang }}
+                {{ "ThematicPlan"|get_lang }}
             </th>
             <th width="20%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
-                {{ "ThematicAdvance" | get_lang }}
+                {{ "ThematicAdvance"|get_lang }}
            </th>
         </tr>
     </thead>