[svn r11764] fix a bug when there are more than one exercise in a lp

skala
Eric Marguin 18 years ago
parent f2593f2141
commit a3bf5518a7
  1. 6
      main/exercice/exercice_submit.php

@ -35,7 +35,7 @@
* the administrator
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: exercice_submit.php 11555 2007-03-13 10:42:00Z elixir_julian $
* @version $Id: exercice_submit.php 11764 2007-03-29 08:28:07Z elixir_inter $
*/
@ -197,7 +197,7 @@ if($formSent)
}
// if the object is not in the session
if(!isset($_SESSION['objExercise']))
if(!isset($_SESSION['objExercise']) || $origin == 'learnpath')
{
if($debug>0){echo str_repeat('&nbsp;',0).'$_SESSION[objExercise] was unset'."<br />\n";}
// construction of Exercise
@ -233,7 +233,7 @@ $exerciseSound=$objExercise->selectSound();
$randomQuestions=$objExercise->isRandom();
$exerciseType=$objExercise->selectType();
if(!isset($_SESSION['questionList']))
if(!isset($_SESSION['questionList']) || $origin == 'learnpath')
{
if($debug>0){echo str_repeat('&nbsp;',0).'$_SESSION[questionList] was unset'."<br />\n";}
// selects the list of question ID

Loading…
Cancel
Save