From 3f494e3e29626e501cd6031d28ba4ddb347b158e Mon Sep 17 00:00:00 2001 From: Hubert Borderiou Date: Mon, 16 Apr 2012 16:53:40 +0200 Subject: [PATCH] Minor bug on question by category number --- main/exercice/exercice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index 25090c9bc4..4aec70da2e 100644 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -603,7 +603,7 @@ if (!empty($exercise_list)) { if ($row['random_by_category'] > 0) { if (!class_exists("testcategory.class.php")) include_once "testcategory.class.php" ; $nbQuestionsTotal = Testcategory::getNumberOfQuestionRandomByCategory($my_exercise_id, $random_number_of_question); - $number_of_questions .= $nbQuestionsTotal." "; + $number_of_questions = $nbQuestionsTotal." "; $number_of_questions .= ($nbQuestionsTotal > 1) ? get_lang("QuestionsLowerCase") : get_lang("QuestionLowerCase") ; $number_of_questions .= " - "; //$number_of_questions .= Testcategory::getNumberMaxQuestionByCat($my_exercise_id).' '.get_lang('QuestionByCategory');