]> git.mxchange.org Git - friendica.git/commitdiff
And another one
authorMichael <heluecht@pirati.ca>
Fri, 12 May 2017 06:55:04 +0000 (06:55 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 12 May 2017 06:55:04 +0000 (06:55 +0000)
include/items.php

index 0033deceaf8cb572e795766fa83fa0acb56d813c..820c79e13d6bc22ec7c5fcf1579d7ca3f3a3012d 100644 (file)
@@ -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) {