Bugfix: Fixed two bad sql queries
This commit is contained in:
parent
e0d329ece9
commit
41613ec55d
2 changed files with 2 additions and 2 deletions
|
@ -293,7 +293,7 @@ function event_store($arr) {
|
||||||
`location` = '%s',
|
`location` = '%s',
|
||||||
`type` = '%s',
|
`type` = '%s',
|
||||||
`adjust` = %d,
|
`adjust` = %d,
|
||||||
`nofinish` = %d,
|
`nofinish` = %d
|
||||||
WHERE `id` = %d AND `uid` = %d",
|
WHERE `id` = %d AND `uid` = %d",
|
||||||
|
|
||||||
dbesc($arr['edited']),
|
dbesc($arr['edited']),
|
||||||
|
|
|
@ -176,7 +176,7 @@ function delete_thread($itemid, $itemuri = "") {
|
||||||
intval($item["uid"])
|
intval($item["uid"])
|
||||||
);
|
);
|
||||||
if (!count($r)) {
|
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)
|
dbesc($itemuri)
|
||||||
);
|
);
|
||||||
logger("delete_thread: Deleted shadow for item ".$itemuri." - ".print_r($result, true), LOGGER_DEBUG);
|
logger("delete_thread: Deleted shadow for item ".$itemuri." - ".print_r($result, true), LOGGER_DEBUG);
|
||||||
|
|
Loading…
Reference in a new issue