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:
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user