diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-11-03 11:10:07 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-11-03 11:10:07 +0000 |
commit | 61fc9605faa29d1bc5b1be8df2a4ab7f36c92264 (patch) | |
tree | 0ee4ae8b718ea253afa73875a53167f1ebf77a39 /phpBB/includes/mcp/mcp_front.php | |
parent | ce8be416d84953ed39cdf3505d55494c7eb63e5b (diff) | |
download | forums-61fc9605faa29d1bc5b1be8df2a4ab7f36c92264.tar forums-61fc9605faa29d1bc5b1be8df2a4ab7f36c92264.tar.gz forums-61fc9605faa29d1bc5b1be8df2a4ab7f36c92264.tar.bz2 forums-61fc9605faa29d1bc5b1be8df2a4ab7f36c92264.tar.xz forums-61fc9605faa29d1bc5b1be8df2a4ab7f36c92264.zip |
some changes
git-svn-id: file:///svn/phpbb/trunk@8223 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_front.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_front.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index d67a51cd89..707fe22685 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -73,6 +73,14 @@ function mcp_front_view($id, $mode, $action) } $db->sql_freeresult($result); + if (empty($post_list)) + { + $total = 0; + } + } + + if ($total) + { $sql = 'SELECT p.post_id, p.post_subject, p.post_time, p.poster_id, p.post_username, u.username, u.username_clean, t.topic_id, t.topic_title, t.topic_first_post_id, p.forum_id FROM ' . POSTS_TABLE . ' p, ' . TOPICS_TABLE . ' t, ' . USERS_TABLE . ' u WHERE ' . $db->sql_in_set('p.post_id', $post_list) . ' |