aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-06-26 16:46:17 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-06-26 16:46:17 +0000
commitfd03f6c5f24588961cbe022f986db7a6e8e14c0f (patch)
tree7c5b6504cc6c05f8d934ae3dd5c62a13c771532f /phpBB/viewtopic.php
parent59573cce8b69bf48ffc81da3ffb14e2b403f6583 (diff)
downloadforums-fd03f6c5f24588961cbe022f986db7a6e8e14c0f.tar
forums-fd03f6c5f24588961cbe022f986db7a6e8e14c0f.tar.gz
forums-fd03f6c5f24588961cbe022f986db7a6e8e14c0f.tar.bz2
forums-fd03f6c5f24588961cbe022f986db7a6e8e14c0f.tar.xz
forums-fd03f6c5f24588961cbe022f986db7a6e8e14c0f.zip
fixed edit posts (wrong username/id entered)
git-svn-id: file:///svn/phpbb/trunk@4178 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 06d5410c59..51938a4923 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1097,7 +1097,7 @@ foreach ($rowset as $i => $row)
'U_EDIT' => (($user->data['user_id'] == $poster_id && $auth->acl_get('f_edit', $forum_id) && ($row['post_time'] > time() - $config['edit_time'] || !$config['edit_time'])) || $auth->acl_get('m_edit', $forum_id)) ? "posting.$phpEx$SID&amp;mode=edit&amp;f=$forum_id&amp;p=" . $row['post_id'] : '',
'U_QUOTE' => ($auth->acl_get('f_quote', $forum_id)) ? "posting.$phpEx$SID&amp;mode=quote&amp;f=$forum_id&amp;p=" . $row['post_id'] : '',
'U_IP' => ($auth->acl_get('m_ip', $forum_id)) ? "mcp.$phpEx?sid=" . $user->session_id . "&amp;mode=post_details&amp;p=" . $row['post_id'] . "&amp;t=$topic_id#ip" : '',
- 'U_DELETE' => (($user->data['user_id'] == $poster_id && $auth->acl_get('f_delete', $forum_id) && $topic_data['topic_last_post_id'] == $row['post_id'] && ($row['post_time'] > time() - $config['edit_time'] || !$config['edit_time'])) || $auth->acl_get('m_delete', $forum_id)) ? "posting.$phpEx$SID&amp;mode=delete&amp;p=" . $row['post_id'] : '',
+ 'U_DELETE' => (($user->data['user_id'] == $poster_id && $auth->acl_get('f_delete', $forum_id) && $topic_data['topic_last_post_id'] == $row['post_id'] && ($row['post_time'] > time() - $config['edit_time'] || !$config['edit_time'])) || $auth->acl_get('m_delete', $forum_id)) ? "posting.$phpEx$SID&amp;mode=delete&amp;f=$forum_id&amp;p=" . $row['post_id'] : '',
'U_PROFILE' => $user_cache[$poster_id]['profile'],
'U_SEARCH' => $user_cache[$poster_id]['search'],