diff --git a/main/exercice/question.class.php b/main/exercice/question.class.php
index 517db30c35..be2e8e07cb 100644
--- a/main/exercice/question.class.php
+++ b/main/exercice/question.class.php
@@ -1,4 +1,4 @@
-weighting=0;
$this->position=1;
$this->picture='';
- $this->level = 0;
+ $this->level = 1;
$this->exerciseList=array();
}
@@ -978,7 +978,7 @@ abstract class Question
//$radios_results_enabled[]=$test;
// question level
- $select_level = array (0,1,2,3,4,5);
+ $select_level = array (1,2,3,4,5);
//$radios_results_enabled[] =
foreach($select_level as $val) {
$radios_results_enabled[] = FormValidator :: createElement ('radio', null, null,$val,$val);
diff --git a/main/exercice/question_pool.php b/main/exercice/question_pool.php
index 6ec9f9ce31..73a7bfbce8 100644
--- a/main/exercice/question_pool.php
+++ b/main/exercice/question_pool.php
@@ -1,4 +1,4 @@
-';
//echo '';
+ //level difficulty only from 1 to 5
if (!isset($exerciseLevel)) $exerciseLevel = -1;
for ($level = -1; $level <=5; $level++) {
- $selected ='';
- if ($exerciseLevel == $level)
- $selected = ' selected="selected" ';
- if ($level==-1) {
- echo '';
- } else {
- echo '';
- }
+ $selected ='';
+ if ($level!=0) {
+ if ($exerciseLevel == $level)
+ $selected = ' selected="selected" ';
+ if ($level==-1) {
+ echo '';
+ } else {
+ echo '';
+ }
+ }
}
echo ' ';
?>