Bugfix: Fixed two bad sql queries

pull/2753/head
Michael Vogel 2016-08-29 18:40:40 +00:00
rodzic e0d329ece9
commit 41613ec55d
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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