From e7fd5876fa97002317e51faa3bf8db23b7d2d209 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 3 Jun 2013 14:26:43 +0200 Subject: [PATCH] Adding random value in exercise list --- main/exercice/exercice.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index c83abed89c..0ddd15ff3c 100644 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -737,6 +737,9 @@ if (!empty($exercise_list)) { }*/ $number_of_questions = $exercise_obj->getQuestionCount(); + if ($row['random'] > 0 || $row['random'] != -1) { + $number_of_questions = $number_of_questions.' ('.$row['random'].' '.get_lang('Random').') '; + } //Attempts //$attempts = get_count_exam_results($my_exercise_id).' '.get_lang('Attempts');