mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
DBA: The condition can now be a complex string
This commit is contained in:
parent
1d8c91c478
commit
89017d4e6c
4 changed files with 53 additions and 42 deletions
|
@ -6,13 +6,11 @@ require_once("include/Photo.php");
|
|||
define("IMPORT_DEBUG", False);
|
||||
|
||||
function last_insert_id() {
|
||||
global $db;
|
||||
|
||||
if (IMPORT_DEBUG) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return $db->insert_id();
|
||||
return dba::lastInsertId();
|
||||
}
|
||||
|
||||
function last_error() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue