Minor - format code

skala
Julio Montoya 12 years ago
parent 2ac36752b0
commit 3471adca78
  1. 5
      main/exercice/question.class.php
  2. 2
      main/exercice/question_list_pagination_admin.inc.php

@ -1051,9 +1051,7 @@ abstract class Question
$count = $new_exercise->selectNbrQuestions();
$count++;
$sql = "INSERT INTO $TBL_EXERCICE_QUESTION (c_id, question_id, exercice_id, question_order) VALUES
({$this->course['real_id']}, '".Database::escape_string($id)."','".Database::escape_string(
$exerciseId
)."', '$count' )";
({$this->course['real_id']}, '".Database::escape_string($id)."','".Database::escape_string($exerciseId)."', '$count' )";
Database::query($sql);
// we do not want to reindex if we had just saved adnd indexed the question
@ -1584,7 +1582,6 @@ abstract class Question
}
}
/**
* function which process the creation of questions
* @param FormValidator $form the formvalidator instance

@ -15,7 +15,7 @@
// deletes a question from the exercise (not from the data base)
if ($deleteQuestion) {
// if the question exists
// If the question exists
if ($objQuestionTmp = Question::read($deleteQuestion)) {
$objQuestionTmp->delete($exerciseId);

Loading…
Cancel
Save