[svn r20571] Fixed bug problema al exportar un csv desde reporte - see FS#4189 (by rvelasquez)

skala
Cristian Fasanando 17 years ago
parent b776433f9b
commit 539cb259b5
  1. 7
      main/newscorm/learnpath.class.php
  2. 6
      main/newscorm/lp_stats.php

@ -369,9 +369,10 @@ class learnpath {
$max_time_allowed = $this->escape_string(htmlentities($max_time_allowed));
if (empty($max_time_allowed)) { $max_time_allowed = 0; }
$title = htmlspecialchars($title, ENT_QUOTES, $charset); // TODO: To be checked for encoding problems.
$title = $this->escape_string(api_convert_encoding($title, $this->encoding, $charset));
$description = $this->escape_string(api_convert_encoding($description, $this->encoding, $charset));
//$title = htmlspecialchars($title, ENT_QUOTES, $charset); // TODO: To be checked for encoding problems.
//$title = $this->escape_string(api_convert_encoding($title, $this->encoding, $charset));
$title = $this->escape_string(api_htmlentities($title, ENT_QUOTES, $charset));
$description = $this->escape_string(api_htmlentities($description, ENT_QUOTES, $charset));
$sql_count = "
SELECT COUNT(id) AS num
FROM " . $tbl_lp_item . "

@ -428,8 +428,6 @@ if (is_array($list) && count($list) > 0){
//$time = learnpathItem :: get_scorm_time('js', $subtotal_time);
$scoIdentifier = $row['myid'];
$title = $row['mytitle'];
$title = stripslashes(api_html_entity_decode($title, ENT_QUOTES, $dokeos_charset));
// selecting the exe_id from stats attempts tables in order to look the max score value
if ($origin != 'tracking') {
@ -583,8 +581,8 @@ if (is_array($list) && count($list) > 0){
if (!empty($export_csv)) {
$temp = array ();
$temp[] = $title;
$temp[] = html_entity_decode($my_lesson_status);
$temp[] = api_html_entity_decode($title, ENT_QUOTES, $lp_charset);
$temp[] = api_html_entity_decode($my_lesson_status, ENT_QUOTES, $lp_charset);
if ($row['item_type'] == 'quiz') {
if (!api_is_allowed_to_edit() && $result_disabled_ext_all) {

Loading…
Cancel
Save