diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-06-20 20:32:53 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-06-20 20:32:53 +0000 |
commit | 0cc3aff18d32d2a4c2cf68869712f831b4b9c34a (patch) | |
tree | 90f701c237fdea658bddc572c83263daa9ff1b27 /phpBB/viewtopic.php | |
parent | 4448249a4433c9047b886efe2ec06dce6c4276f8 (diff) | |
download | forums-0cc3aff18d32d2a4c2cf68869712f831b4b9c34a.tar forums-0cc3aff18d32d2a4c2cf68869712f831b4b9c34a.tar.gz forums-0cc3aff18d32d2a4c2cf68869712f831b4b9c34a.tar.bz2 forums-0cc3aff18d32d2a4c2cf68869712f831b4b9c34a.tar.xz forums-0cc3aff18d32d2a4c2cf68869712f831b4b9c34a.zip |
Prevent warning self
git-svn-id: file:///svn/phpbb/trunk@6108 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 f0dc63f023..b9e6ca3cbf 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1360,7 +1360,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) 'U_NEXT_POST_ID' => ($i < $i_total && isset($rowset[$post_list[$i + 1]])) ? $rowset[$post_list[$i + 1]]['post_id'] : '', 'U_PREV_POST_ID' => $prev_post_id, 'U_NOTES' => ($auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=notes&mode=user_notes&u=' . $poster_id, true, $user->session_id) : '', - 'U_WARN' => ($auth->acl_getf_global('m_warn')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&mode=warn_post&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '', + 'U_WARN' => ($auth->acl_getf_global('m_warn') && $poster_id != $user->data['user_id']) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=warn&mode=warn_post&f=' . $forum_id . '&p=' . $row['post_id'], true, $user->session_id) : '', 'POST_ID' => $row['post_id'], |