]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Fixed two bad sql queries
authorMichael Vogel <ike@pirati.ca>
Mon, 29 Aug 2016 18:40:40 +0000 (18:40 +0000)
committerMichael Vogel <ike@pirati.ca>
Mon, 29 Aug 2016 18:40:40 +0000 (18:40 +0000)
include/event.php
include/threads.php

index 98307e23e1537dc0440f628b6420284125719e34..a68e1c4626d37cf523711387fbd9539511317135 100644 (file)
@@ -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']),
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);