diff --git a/main/course_info/infocours.php b/main/course_info/infocours.php index 9f5d93ff74..4e046b2ae6 100755 --- a/main/course_info/infocours.php +++ b/main/course_info/infocours.php @@ -369,7 +369,7 @@ if ($form->validate() && is_settings_editable()) { //We do not update variables that were already saved in the TABLE_MAIN_COURSE table if (!in_array($key, $update_in_course_table)) { //$sql = "UPDATE $table_course_setting SET value = ".." WHERE variable = '$key' "; - Database::update_query($table_course_setting, array('value' => $update_values[$key]), array('variable = ? ' =>$key)); + Database::update($table_course_setting, array('value' => $update_values[$key]), array('variable = ? ' =>$key)); } } $cidReset = true; diff --git a/main/coursecopy/classes/CourseRestorer.class.php b/main/coursecopy/classes/CourseRestorer.class.php index 64c55ad965..6fad5d0190 100755 --- a/main/coursecopy/classes/CourseRestorer.class.php +++ b/main/coursecopy/classes/CourseRestorer.class.php @@ -973,7 +973,7 @@ class CourseRestorer $new_answers = Database::select('id, correct', $table_ans, array('where'=>array('question_id = ?'=>$new_id))); foreach ($new_answers as $answer_item) { $params['correct'] = $old_option_ids[$answer_item['correct']]; - $question_option_id = Database::update_query($table_ans, $params, array('id = ?'=>$answer_item['id'])); + $question_option_id = Database::update($table_ans, $params, array('id = ?'=>$answer_item['id'])); } } $this->course->resources[RESOURCE_QUIZQUESTION][$id]->destination_id = $new_id; diff --git a/main/exercice/question.class.php b/main/exercice/question.class.php index cc1b599e5d..4931957be1 100755 --- a/main/exercice/question.class.php +++ b/main/exercice/question.class.php @@ -1247,7 +1247,7 @@ abstract class Question static function updateQuestionOption($id, $params) { $TBL_EXERCICE_QUESTION_OPTION = Database::get_course_table(TABLE_QUIZ_QUESTION_OPTION); - $result = Database::update_query($TBL_EXERCICE_QUESTION_OPTION, $params, array('id = ?'=>$id)); + $result = Database::update($TBL_EXERCICE_QUESTION_OPTION, $params, array('id = ?'=>$id)); return $result; } diff --git a/main/inc/ajax/exercise.ajax.php b/main/inc/ajax/exercise.ajax.php index 881865cbab..f60e9f3b65 100644 --- a/main/inc/ajax/exercise.ajax.php +++ b/main/inc/ajax/exercise.ajax.php @@ -12,7 +12,7 @@ switch ($action) { $TBL_QUESTIONS = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION); $counter = 1; foreach ($new_question_list as $new_order_id) { - Database::update_query($TBL_QUESTIONS, array('question_order'=>$counter), array('question_id = ? '=>$new_order_id)); + Database::update($TBL_QUESTIONS, array('question_order'=>$counter), array('question_id = ? '=>$new_order_id)); $counter++; } Display::display_confirmation_message(get_lang('Saved')); diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 725720c199..5f3829e75f 100755 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -8634,7 +8634,7 @@ EOD; //Setting everything to autolunch = 0 $attributes['autolunch'] = 0; $where = array('session_id = ? '=> api_get_session_id()); - Database::update_query($lp_table, $attributes,$where); + Database::update($lp_table, $attributes,$where); if ($status == 1) { //Setting my lp_id to autolunch = 1 $attributes['autolunch'] = 1; diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index 06c5c34076..9f1236be1c 100755 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -191,7 +191,6 @@ if ($type_quiz && !empty($_REQUEST['exeId']) && isset($_GET['lp_id']) && isset($ Database::query($sql_upd_score); $update_query = "UPDATE $TBL_TRACK_EXERCICES SET orig_lp_item_view_id = $lp_item_view_id WHERE exe_id = ".$safe_exe_id; - //error_log('dddd-->'.$update_query); Database::query($update_query); } }