Browse Source

Fixed SQL problems

pull/2244/head
Michael Vogel 5 years ago
parent
commit
b4631cebed
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      include/threads.php
  2. +1
    -1
      mod/network.php

+ 1
- 1
include/threads.php View File

@ -111,7 +111,7 @@ function update_thread_uri($itemuri, $uid) {
}
function update_thread($itemid, $setmention = false) {
$items = q("SELECT `uid`, `guid`, `title`, `body`, `created`, `edited`, `commented`, `received`, `changed`, `wall`, `private`, `pubmail`, `moderated`, `visible`, `spam`, `starred`, `bookmark`, `contact-id`, 'gcontact-id`,
$items = q("SELECT `uid`, `guid`, `title`, `body`, `created`, `edited`, `commented`, `received`, `changed`, `wall`, `private`, `pubmail`, `moderated`, `visible`, `spam`, `starred`, `bookmark`, `contact-id`, `gcontact-id`,
`deleted`, `origin`, `forum_mode`, `network` FROM `item` WHERE `id` = %d AND (`parent` = %d OR `parent` = 0) LIMIT 1", intval($itemid), intval($itemid));
if (!$items)


+ 1
- 1
mod/network.php View File

@ -670,7 +670,7 @@ function network_content(&$a, $update = 0) {
}
if($conv)
$sql_extra3 .= " AND `mention`";
$sql_extra3 .= " AND $sql_table.`mention`";
if($update) {


Loading…
Cancel
Save