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
|
@ -887,12 +887,7 @@ function item_post(App $a) {
|
|||
);
|
||||
|
||||
if (dbm::is_result($r)) {
|
||||
$r = q("SELECT LAST_INSERT_ID() AS `item-id`");
|
||||
if (dbm::is_result($r)) {
|
||||
$post_id = $r[0]['item-id'];
|
||||
} else {
|
||||
$post_id = 0;
|
||||
}
|
||||
$post_id = dba::lastInsertId();
|
||||
} else {
|
||||
logger('mod_item: unable to create post.');
|
||||
$post_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue