X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fthreads.php;h=b0ba54684062022b0a28c7b05e88003cc0455cfc;hb=0541a62134e8af948f0e4c713a42ca70eaa64f3f;hp=66622e8746c6c40cefee9fe732d1857a22f480f2;hpb=fa3fa42d966e00534aa6cbf33d60ef438a8e3b97;p=friendica.git diff --git a/include/threads.php b/include/threads.php index 66622e8746..b0ba546840 100644 --- a/include/threads.php +++ b/include/threads.php @@ -245,9 +245,7 @@ function delete_thread($itemid, $itemuri = "") { intval($item["uid"]) ); if (!dbm::is_result($r)) { - $r = q("DELETE FROM `item` WHERE `uri` = '%s' AND `uid` = 0", - dbesc($itemuri) - ); + dba::delete('item', array('uri' => $itemuri, 'uid' => 0)); logger("delete_thread: Deleted shadow for item ".$itemuri." - ".print_r($result, true), LOGGER_DEBUG); } }