diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2003-04-19 10:28:37 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-04-19 10:28:37 +0000 |
| commit | 68deb6cbfd82aab32c348a1ee40ea9dcba096b33 (patch) | |
| tree | 2e3bf8216dafdd14917b91896f91db03e5e47fd3 /phpBB/viewtopic.php | |
| parent | 92141c3e356f38c25830239a1449b5013e8b9a4c (diff) | |
| download | forums-68deb6cbfd82aab32c348a1ee40ea9dcba096b33.tar forums-68deb6cbfd82aab32c348a1ee40ea9dcba096b33.tar.gz forums-68deb6cbfd82aab32c348a1ee40ea9dcba096b33.tar.bz2 forums-68deb6cbfd82aab32c348a1ee40ea9dcba096b33.tar.xz forums-68deb6cbfd82aab32c348a1ee40ea9dcba096b33.zip | |
do not use the sync function if post get deleted. added topic_last_post_id information to viewtopic, for determining delete permission correctly.
git-svn-id: file:///svn/phpbb/trunk@3887 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index d4af16bc45..c711d57b83 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -160,7 +160,7 @@ if (!$forum_id) { $forum_id = 2; } -$sql = "SELECT t.topic_id, t.forum_id AS real_forum_id, t.topic_title, t.topic_attachment, t.topic_status, " . (($auth->acl_get('m_approve')) ? 't.topic_replies_real AS topic_replies' : 't.topic_replies') . ", t.topic_time, t.topic_type, t.poll_start, t.poll_length, t.poll_title, f.forum_name, f.forum_desc, f.forum_parents, f.parent_id, f.left_id, f.right_id, f.forum_status, f.forum_id, f.forum_style" . $extra_fields . " +$sql = "SELECT t.topic_id, t.forum_id AS real_forum_id, t.topic_title, t.topic_attachment, t.topic_status, " . (($auth->acl_get('m_approve')) ? 't.topic_replies_real AS topic_replies' : 't.topic_replies') . ", t.topic_last_post_id, t.topic_time, t.topic_type, t.poll_start, t.poll_length, t.poll_title, f.forum_name, f.forum_desc, f.forum_parents, f.parent_id, f.left_id, f.right_id, f.forum_status, f.forum_id, f.forum_style" . $extra_fields . " FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " WHERE $join_sql AND (f.forum_id = t.forum_id |
