Browse Source

Bugfix: Fixed two bad sql queries

tags/3.5
Michael Vogel 4 years ago
parent
commit
41613ec55d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      include/event.php
  2. +1
    -1
      include/threads.php

+ 1
- 1
include/event.php 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']),


+ 1
- 1
include/threads.php 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);


Loading…
Cancel
Save