diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index 940fa89409..1a415f8838 100644 --- a/main/exercice/exercice_submit.php +++ b/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(' ',0).'$_SESSION[objExercise] was unset'."
\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(' ',0).'$_SESSION[questionList] was unset'."
\n";} // selects the list of question ID