mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fix topic count query
git-svn-id: file:///svn/phpbb/trunk@4392 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
eeab805012
commit
3a90899e3d
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ if ($forum_data['forum_type'] == FORUM_POST)
|
||||||
WHERE forum_id = $forum_id
|
WHERE forum_id = $forum_id
|
||||||
AND topic_type <> " . POST_ANNOUNCE . "
|
AND topic_type <> " . POST_ANNOUNCE . "
|
||||||
AND topic_last_post_time >= $min_post_time
|
AND topic_last_post_time >= $min_post_time
|
||||||
" . (($auth->acl_get('m_approve', $forum_id)) ? '' : 'AND t.topic_approved = 1');
|
" . (($auth->acl_get('m_approve', $forum_id)) ? '' : 'AND topic_approved = 1');
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
if (isset($_POST['sort']))
|
if (isset($_POST['sort']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue