]> git.mxchange.org Git - friendica.git/blobdiff - include/threads.php
Merge pull request #3961 from MrPetovan/task/3946-use-random-bytes
[friendica.git] / include / threads.php
index 107f2f76b13e3a79d0b12ce31cf7d7c695bc755d..00848ccc6e328e55a6c28c82719f9f8e56688f35 100644 (file)
@@ -251,7 +251,7 @@ function delete_thread($itemid, $itemuri = "") {
        }
 
        // Using dba::delete at this time could delete the associated item entries
-       $result = q("DELETE FROM `thread` WHERE `iid` = %d", intval($itemid));
+       $result = dba::e("DELETE FROM `thread` WHERE `iid` = ?", $itemid);
 
        logger("delete_thread: Deleted thread for item ".$itemid." - ".print_r($result, true), LOGGER_DEBUG);