diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php index 7613079df68..631496b3998 100644 --- a/htdocs/core/db/sqlite.class.php +++ b/htdocs/core/db/sqlite.class.php @@ -856,7 +856,7 @@ class DoliDBSqlite */ function last_insert_id($tab,$fieldid='rowid') { - return PDO::lastInsertId(); + return $this->db->lastInsertId(); } /**