From acd9f453d75026f4e79a0824fbd655548f4d84d2 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 12 May 2017 06:55:04 +0000 Subject: [PATCH] And another one --- include/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/items.php b/include/items.php index 0033deceaf..820c79e13d 100644 --- a/include/items.php +++ b/include/items.php @@ -1022,7 +1022,7 @@ function item_store($arr, $force_parent = false, $notify = false, $dontcache = f logger('Duplicated post occurred. uri = ' . $arr['uri'] . ' uid = ' . $arr['uid']); // Yes, we could do a rollback here - but we are having many users with MyISAM. - q("DELETE FROM `item` WHERE `id` = %d", intval($current_post)); + dba::delete('item', array('id' => $current_post)); dba::commit(); return 0; } elseif ($r[0]["entries"] == 0) {