From 41613ec55df11d6e514ca4c5f207f81cf9cf48f2 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 29 Aug 2016 18:40:40 +0000 Subject: [PATCH] Bugfix: Fixed two bad sql queries --- include/event.php | 2 +- include/threads.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);