aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-03-21 22:43:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-03-21 22:43:07 +0000
commita4e51c9699c7a09bea32ad832a9818abba008801 (patch)
tree42feb7021db4bd9cb9334e65b23260d491d3b131 /phpBB/viewforum.php
parent68b7397da8197d23dae07fc0e7927697cb1e3492 (diff)
downloadforums-a4e51c9699c7a09bea32ad832a9818abba008801.tar
forums-a4e51c9699c7a09bea32ad832a9818abba008801.tar.gz
forums-a4e51c9699c7a09bea32ad832a9818abba008801.tar.bz2
forums-a4e51c9699c7a09bea32ad832a9818abba008801.tar.xz
forums-a4e51c9699c7a09bea32ad832a9818abba008801.zip
- first try to break things...
git-svn-id: file:///svn/phpbb/trunk@5108 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index e3e3ff33b4..9e0e346394 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -358,7 +358,7 @@ if ($forum_data['forum_type'] == FORUM_POST || ($forum_data['forum_flags'] & 16)
// Obtain other topics
// $sql_rownum = (SQL_LAYER != 'oracle') ? '' : ', ROWNUM rnum ';
$sql_rownum = '';
- $sql_where = ($forum_data['forum_type'] == FORUM_POST) ? "= $forum_id" : 'IN (' . implode(', ', $active_forum_ary['forum_id']) . ')';
+ $sql_where = ($forum_data['forum_type'] == FORUM_POST || !sizeof($active_forum_ary)) ? "= $forum_id" : 'IN (' . implode(', ', $active_forum_ary['forum_id']) . ')';
$sql = "SELECT t.* $sql_select$sql_rownum
FROM $sql_from
WHERE t.forum_id $sql_where