Replace deprecated function.

1.10.x
Julio Montoya 10 years ago
parent 073df40cb8
commit f7960e094a
  1. 2
      main/exercice/question.class.php
  2. 2
      main/inc/lib/course_request.lib.php
  3. 2
      main/inc/lib/usermanager.lib.php

@ -1556,7 +1556,7 @@ abstract class Question
Database::query($sql);
// Get the question ID
$question_id = Database::get_last_insert_id();
$question_id = Database::insert_id();
// Get the max question_order
$sql = "SELECT max(question_order) as max_order "

@ -114,7 +114,7 @@ class CourseRequestManager
if (!$result_sql) {
return false;
}
$last_insert_id = Database::get_last_insert_id();
$last_insert_id = Database::insert_id();
// E-mail notifications.

@ -3579,7 +3579,7 @@ class UserManager
} else {
$sql = "INSERT INTO $table_user_tag (tag, field_id,count) VALUES ('$tag','$field_id', count + 1)";
$result = Database::query($sql);
$last_insert_id = Database::get_last_insert_id();
$last_insert_id = Database::insert_id();
} */
} else {

Loading…
Cancel
Save