From 3471adca7829455c2132c34d5870301ec3cb158c Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 31 May 2013 20:05:26 +0200 Subject: [PATCH] Minor - format code --- main/exercice/question.class.php | 5 +---- main/exercice/question_list_pagination_admin.inc.php | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/main/exercice/question.class.php b/main/exercice/question.class.php index 32b72ad769..e06588a09b 100644 --- a/main/exercice/question.class.php +++ b/main/exercice/question.class.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 diff --git a/main/exercice/question_list_pagination_admin.inc.php b/main/exercice/question_list_pagination_admin.inc.php index 3b9d5d823d..4765fc6caa 100644 --- a/main/exercice/question_list_pagination_admin.inc.php +++ b/main/exercice/question_list_pagination_admin.inc.php @@ -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);