@@ 825-833 (lines=9) @@ | ||
822 | $temp[] = api_html_entity_decode($title, ENT_QUOTES); |
|
823 | $temp[] = api_html_entity_decode($lesson_status, ENT_QUOTES); |
|
824 | ||
825 | if ($row['item_type'] == 'quiz') { |
|
826 | if (!$is_allowed_to_edit && $result_disabled_ext_all) { |
|
827 | $temp[] = '/'; |
|
828 | } else { |
|
829 | $temp[] = ($score == 0 ? '0/' . $maxscore : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
|
830 | } |
|
831 | } else { |
|
832 | $temp[] = ($score == 0 ? '/' : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
|
833 | } |
|
834 | $temp[] = $time; |
|
835 | $csv_content[] = $temp; |
|
836 | } |
|
@@ 472-480 (lines=9) @@ | ||
469 | $temp[] = $title = Security::remove_XSS($title); |
|
470 | $temp[] = Security::remove_XSS(learnpathItem::humanize_status($lesson_status, false, $type)); |
|
471 | ||
472 | if ($row['item_type'] == 'quiz') { |
|
473 | if (!$is_allowed_to_edit && $result_disabled_ext_all) { |
|
474 | $temp[] = '/'; |
|
475 | } else { |
|
476 | $temp[] = ($score == 0 ? '0/' . $maxscore : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
|
477 | } |
|
478 | } else { |
|
479 | $temp[] = ($score == 0 ? '/' : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1))); |
|
480 | } |
|
481 | $temp[] = $time; |
|
482 | $csv_content[] = $temp; |
|
483 | } |