delete(); } // destruction of the Question object unset($objQuestionTmp); } // gets an existing question and copies it into a new exercise elseif($recup && $fromExercise) { // if the question exists if($objQuestionTmp = Question :: read($recup)) { // adds the exercise ID represented by $fromExercise into the list of exercises for the current question $objQuestionTmp->addToList($fromExercise); } // destruction of the Question object unset($objQuestionTmp); // adds the question ID represented by $recup into the list of questions for the current exercise $objExercise->addToList($recup); api_session_register('objExercise'); header("Location: admin.php?exerciseId=$fromExercise"); exit(); } } $nameTools=get_lang('QuestionPool'); $interbreadcrumb[]=array("url" => "exercice.php","name" => get_lang('Exercices')); // if admin of course if($is_allowedToEdit) { Display::display_header($nameTools,"Exercise"); ?>