aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_main.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-08-30 13:15:36 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-08-30 13:15:36 +0000
commit239bd5e37ca32016714046f55f1a6afff3805dea (patch)
treeb27d5fe2681bc76c6d06fb5e22a17dd86ec17b6d /phpBB/includes/ucp/ucp_main.php
parent733774d747997856993f141beb54156262dc738a (diff)
downloadforums-239bd5e37ca32016714046f55f1a6afff3805dea.tar
forums-239bd5e37ca32016714046f55f1a6afff3805dea.tar.gz
forums-239bd5e37ca32016714046f55f1a6afff3805dea.tar.bz2
forums-239bd5e37ca32016714046f55f1a6afff3805dea.tar.xz
forums-239bd5e37ca32016714046f55f1a6afff3805dea.zip
oops :P
git-svn-id: file:///svn/phpbb/trunk@6335 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_main.php')
-rw-r--r--phpBB/includes/ucp/ucp_main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php
index 0bd49767a9..4e3659de50 100644
--- a/phpBB/includes/ucp/ucp_main.php
+++ b/phpBB/includes/ucp/ucp_main.php
@@ -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'];