Merge pull request #2753 from annando/1608-sql-errors

Bugfix: Fixed two bad sql queries
This commit is contained in:
rabuzarus 2016-08-29 22:24:37 +02:00 committed by GitHub
commit 1bfe7b432a
2 changed files with 2 additions and 2 deletions

View 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']),

View 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);