Browse Source

Fixes use with upper cases user answers see #5703 (Do not use api_strtolower)

Julio Montoya 12 years ago
parent
commit
81eee880c6
1 changed files with 6 additions and 3 deletions
  1. 6 3
      main/exercice/exercise.class.php

+ 6 - 3
main/exercice/exercise.class.php

@@ -2251,10 +2251,13 @@ class Exercise {
 						} else {
 							$choice[$j] = trim($choice[$j]);
 						}
-
-						$user_tags[] = api_strtolower($choice[$j]);
+                        
+                        //No idea why we api_strtolower user reponses
+						//$user_tags[] = api_strtolower($choice[$j]);
+                        $user_tags[] = $choice[$j];
 						//put the contents of the [] answer tag into correct_tags[]
-						$correct_tags[] = api_strtolower(api_substr($temp, 0, $pos));
+						//$correct_tags[] = api_strtolower(api_substr($temp, 0, $pos));
+                        $correct_tags[] = api_substr($temp, 0, $pos);
 						$j++;
 						$temp = api_substr($temp, $pos +1);
 					}