[svn r11562] Fix the bug with matching questions

skala
Julian Prud'homme 18 years ago
parent bdd627a866
commit 1a6926c28f
  1. 5
      main/exercice/exercise_result.php

@ -27,7 +27,7 @@
* @package dokeos.exercise
* @author Olivier Brouckaert, main author
* @author Roan Embrechts, some refactoring
* @version $Id: exercise_result.php 11548 2007-03-12 16:03:43Z elixir_julian $
* @version $Id: exercise_result.php 11562 2007-03-13 15:41:19Z elixir_julian $
*
* @todo split more code up in functions, move functions to library?
*/
@ -719,10 +719,9 @@ $exerciseTitle=api_parse_tex($exerciseTitle);
}
elseif ($answerType==4)
{
$j=3;
$j=sizeof($choice)+1;
for ($i=0;$i<sizeof($choice);$i++,$j++)
{
$val = $choice[$j];
if (preg_match_all ('#<font color="red"><s>([0-9a-z ]*)</s></font>#', $val, $arr1))
$val = $arr1[1][0];

Loading…
Cancel
Save