]> git.mxchange.org Git - friendica.git/blobdiff - include/uimport.php
Revert DB update
[friendica.git] / include / uimport.php
index c6eeb6fc73169fb5fe6b9534e2c76445c8e501b2..4cc5b6c04b3f14d17b87c6c9d254968f4bdd54fc 100644 (file)
@@ -11,14 +11,11 @@ define("IMPORT_DEBUG", False);
 \r
 function last_insert_id() {\r
        global $db;\r
+\r
        if (IMPORT_DEBUG)\r
                return 1;\r
-       if ($db->mysqli) {\r
-               $thedb = $db->getdb();\r
-               return $thedb->insert_id;\r
-       } else {\r
-               return mysql_insert_id();\r
-       }\r
+\r
+       return $db->insert_id();\r
 }\r
 \r
 function last_error() {\r