mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
oops :P
git-svn-id: file:///svn/phpbb/trunk@6335 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
733774d747
commit
239bd5e37c
1 changed files with 2 additions and 1 deletions
|
@ -76,12 +76,13 @@ class ucp_main
|
|||
WHERE t.forum_id = 0
|
||||
AND t.topic_type = " . POST_GLOBAL . '
|
||||
ORDER BY t.topic_last_post_time DESC';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$topic_list = $rowset = array();
|
||||
// If the user can't see any forums, he can't read any posts because fid of 0 is invalid
|
||||
if ($g_forum_id)
|
||||
{
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$topic_list[] = $row['topic_id'];
|
||||
|
|
Loading…
Add table
Reference in a new issue