فهرست منبع

Fixing wrong constant name

Julio Montoya 11 سال پیش
والد
کامیت
69d6c42ca1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      main/exercice/exercise.class.php

+ 1 - 1
main/exercice/exercise.class.php

@@ -1339,7 +1339,7 @@ class Exercise
         } else {
             // dont reduce the number of random question if we use random by category option, or if
             // random all questions
-            if ($this->isRandom() && $this->isRandomByCat() == EXERCISE_RANDOM_DISABLED) {
+            if ($this->isRandom() && $this->isRandomByCat() == EXERCISE_CATEGORY_RANDOM_DISABLED) {
                 if (count($this->questionList) >= $this->random && $this->random > 0) {
                     $this->random -= 1;
                     $this->save();