diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-06 21:35:08 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-06 21:35:08 +0000 |
commit | 999a0c9d1a0fd29a80f1b1e2ec4e263960d09e13 (patch) | |
tree | 75431526d045e8162fc6f81706b505b88d6e7518 /phpBB/viewtopic.php | |
parent | 43bc7ac78f64dd081046d2f146765315ef45c339 (diff) | |
download | forums-999a0c9d1a0fd29a80f1b1e2ec4e263960d09e13.tar forums-999a0c9d1a0fd29a80f1b1e2ec4e263960d09e13.tar.gz forums-999a0c9d1a0fd29a80f1b1e2ec4e263960d09e13.tar.bz2 forums-999a0c9d1a0fd29a80f1b1e2ec4e263960d09e13.tar.xz forums-999a0c9d1a0fd29a80f1b1e2ec4e263960d09e13.zip |
Reduced auth code size and added some more auth types
git-svn-id: file:///svn/phpbb/trunk@435 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 632e56c552..3ff1567863 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -148,9 +148,9 @@ else AND f.forum_id = t.forum_id $order_sql"; */ - $order_sql = (!isset($post_id)) ? "" : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, f.forum_name, f.forum_id, fa.auth_view, fa.auth_read, fa.auth_post, fa.auth_reply, fa.auth_edit, fa.auth_delete, fa.auth_votecreate, fa.auth_vote ORDER BY p.post_id ASC"; + $order_sql = (!isset($post_id)) ? "" : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, f.forum_name, f.forum_id, fa.auth_view, fa.auth_read, fa.auth_post, fa.auth_reply, fa.auth_edit, fa.auth_delete, fa.auth_announce, fa.auth_sticky, fa.auth_votecreate, fa.auth_vote ORDER BY p.post_id ASC"; - $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, f.forum_name, f.forum_id, fa.auth_view, fa.auth_read, fa.auth_post, fa.auth_reply, fa.auth_edit, fa.auth_delete, fa.auth_votecreate, fa.auth_vote" . $count_sql . " + $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, f.forum_name, f.forum_id, fa.auth_view, fa.auth_read, fa.auth_post, fa.auth_reply, fa.auth_edit, fa.auth_announce, fa.auth_sticky, fa.auth_delete, fa.auth_votecreate, fa.auth_vote" . $count_sql . " FROM $join_sql_table ".TOPICS_TABLE." t, ".FORUMS_TABLE." f, ".AUTH_FORUMS_TABLE." fa WHERE $join_sql AND f.forum_id = t.forum_id |