Browse Source

Replacing substr to api_substr

Julio Montoya 14 years ago
parent
commit
1a3ed47fc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/exercice/exercise_show.php

+ 1 - 1
main/exercice/exercise_show.php

@@ -644,7 +644,7 @@ if ($show_results) {
 						$choice = $arr[1];
 
 						$tmp=strrpos($choice[$j],' / ');
-						$choice[$j]=substr($choice[$j],0,$tmp);
+						$choice[$j]=api_substr($choice[$j],0,$tmp);
 						$choice[$j]=trim($choice[$j]);
 
 						//Needed to let characters ' and " to work as part of an answer