mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:50:10 +00:00
Merge remote-tracking branch 'upstream/develop' into 1702-null-date
This commit is contained in:
commit
e301fa0832
64 changed files with 1826 additions and 2335 deletions
|
@ -11,14 +11,11 @@ define("IMPORT_DEBUG", False);
|
|||
|
||||
function last_insert_id() {
|
||||
global $db;
|
||||
|
||||
if (IMPORT_DEBUG)
|
||||
return 1;
|
||||
if ($db->mysqli) {
|
||||
$thedb = $db->getdb();
|
||||
return $thedb->insert_id;
|
||||
} else {
|
||||
return mysql_insert_id();
|
||||
}
|
||||
|
||||
return $db->insert_id();
|
||||
}
|
||||
|
||||
function last_error() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue