From: Michael Vogel Date: Mon, 29 Aug 2016 18:40:40 +0000 (+0000) Subject: Bugfix: Fixed two bad sql queries X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41613ec55df11d6e514ca4c5f207f81cf9cf48f2;p=friendica.git Bugfix: Fixed two bad sql queries --- diff --git a/include/event.php b/include/event.php index 98307e23e1..a68e1c4626 100644 --- a/include/event.php +++ b/include/event.php @@ -293,7 +293,7 @@ function event_store($arr) { `location` = '%s', `type` = '%s', `adjust` = %d, - `nofinish` = %d, + `nofinish` = %d WHERE `id` = %d AND `uid` = %d", dbesc($arr['edited']), diff --git a/include/threads.php b/include/threads.php index 0b2b26e8d2..2e02e7ada3 100644 --- a/include/threads.php +++ b/include/threads.php @@ -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);