1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

- fixed notification redirection

- added SID to ucp redirects


git-svn-id: file:///svn/phpbb/trunk@4915 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2004-06-15 17:56:37 +00:00
parent 6aa372226e
commit 8022b6f6b2
5 changed files with 15 additions and 12 deletions

View File

@@ -977,9 +977,10 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = FALSE,
}
}
$sql = 'SELECT DISTINCT(post_id)
$sql = 'SELECT DISTINCT(post_msg_id)
FROM ' . ATTACHMENTS_TABLE . '
WHERE post_id IN (' . implode(', ', $post_ids) . ')';
WHERE post_msg_id IN (' . implode(', ', $post_ids) . ')
AND in_message = 0';
$post_ids = array();
$result = $db->sql_query($sql);

View File

@@ -163,6 +163,8 @@ class ucp_main extends module
if ($post_count_sql)
{
// NOTE: The following three queries could be a problem for big boards
// Grab all the relevant data
$sql = 'SELECT COUNT(p.post_id) AS num_posts
FROM ' . POSTS_TABLE . ' p, ' . FORUMS_TABLE . ' f