Forráskód Böngészése

[svn r15071] Export CSV error fixed in Reporting Tool (see FS#2495)

Julio Montoya 17 éve
szülő
commit
b68ff0b88e
2 módosított fájl, 12 hozzáadás és 10 törlés
  1. 3 4
      main/mySpace/lp_tracking.php
  2. 9 6
      main/newscorm/lp_stats.php

+ 3 - 4
main/mySpace/lp_tracking.php

@@ -166,10 +166,9 @@ $origin = 'tracking';
 
 
 if($export_csv)
-{
-	include_once('../newscorm/lp_stats.php');
-	ob_end_clean();
-	Export :: export_table_csv($csv_content, 'reporting_student');
+{	
+	include_once('../newscorm/lp_stats.php');	
+	//Export :: export_table_csv($csv_content, 'reporting_student');
 }
 else
 {

+ 9 - 6
main/newscorm/lp_stats.php

@@ -577,17 +577,20 @@ $output .= "</table></td></tr></table>";
 if($export_csv)
 {
 	$temp = array('','','','');
-	$csv_content[] = $temp;
+	$csv_content[] = $temp;	
 	$temp = array(get_lang('AccomplishedStepsTotal'),'',$final_score,$total_time);
-	$csv_content[] = $temp;
-	ob_end_clean();
+	$csv_content[] = $temp; 
+	ob_end_clean();	
 	Export :: export_table_csv($csv_content, 'reporting_learning_path_details');
 }
 
 if($origin != 'tracking')
 {
 	$output .= "</body></html>";
-}
-echo $output;
-?>
+} 
 
+if(!$export_csv)
+{
+	echo $output;
+}
+?>