summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rwxr-xr-xprogram/include/rcube_db.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/include/rcube_db.inc b/program/include/rcube_db.inc
index e83565843..a987d2e84 100755
--- a/program/include/rcube_db.inc
+++ b/program/include/rcube_db.inc
@@ -192,8 +192,11 @@ class rcube_db
return $result;
case 'mysql': // This is unfortuneate
- return mysql_insert_id();
+ return mysql_insert_id($this->db_handle->connection);
+ case 'mysqli':
+ return mysqli_insert_id($this->db_handle->connection);
+
case 'sqlite':
return sqlite_last_insert_rowid($this->db_handle->connection);