]> git.mxchange.org Git - friendica.git/blobdiff - include/threads.php
Prevent a memory Access Violation when the database isn't connected
[friendica.git] / include / threads.php
index 0b2b26e8d242886b870fa3595563d031c23e4f32..2e02e7ada3290ae0ecb690cad1d6ca912e307379 100644 (file)
@@ -176,7 +176,7 @@ function delete_thread($itemid, $itemuri = "") {
                                intval($item["uid"])
                        );
                if (!count($r)) {
-                       $r = q("DELETE FROM `item` WHERE `uri` = '%s' AND `uid` = 0)",
+                       $r = q("DELETE FROM `item` WHERE `uri` = '%s' AND `uid` = 0",
                                dbesc($itemuri)
                        );
                        logger("delete_thread: Deleted shadow for item ".$itemuri." - ".print_r($result, true), LOGGER_DEBUG);