Skip to content

Commit 973edaa

Browse files
authored
Merge pull request #3400 from carlangas159/chamilo-lms-3222
Quiz: Exercise result: Exporting pdf is impossible - refs #3222
2 parents 9820c93 + 9b11cff commit 973edaa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main/exercise/exercise_show.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,7 @@ function getFCK(vals, marksid) {
939939
if ('export' === $action) {
940940
$content = ob_get_clean();
941941
// needed in order to mpdf to work
942-
ob_clean();
943-
942+
if (ob_get_contents()) ob_clean();
944943
$params = [
945944
'filename' => api_replace_dangerous_char(
946945
$objExercise->name.' '.

0 commit comments

Comments
 (0)