mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 08:35:31 +02:00
Incorrect check on moderated forum field
git-svn-id: file:///svn/phpbb/trunk@3019 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
097a1caca8
commit
1c5f838a2d
@ -293,7 +293,7 @@ if (isset($post))
|
|||||||
'topic_time' => $current_time,
|
'topic_time' => $current_time,
|
||||||
'topic_type' => intval($topic_type),
|
'topic_type' => intval($topic_type),
|
||||||
'topic_icon' => intval($icon),
|
'topic_icon' => intval($icon),
|
||||||
'topic_approved'=> (empty($forum_moderated) && !$auth->acl_gets('m_', 'a_', intval($forum_id))) ? 0 : 1,
|
'topic_approved'=> (!empty($forum_moderated) && !$auth->acl_gets('m_', 'a_', intval($forum_id))) ? 0 : 1,
|
||||||
);
|
);
|
||||||
if (!empty($poll_options))
|
if (!empty($poll_options))
|
||||||
{
|
{
|
||||||
@ -317,7 +317,7 @@ if (isset($post))
|
|||||||
'post_username' => ($username != '') ? $username : '',
|
'post_username' => ($username != '') ? $username : '',
|
||||||
'poster_ip' => $user->ip,
|
'poster_ip' => $user->ip,
|
||||||
'post_time' => $current_time,
|
'post_time' => $current_time,
|
||||||
'post_approved' => (empty($forum_moderated) && !$auth->acl_gets('m_', 'a_', intval($forum_id))) ? 0 : 1,
|
'post_approved' => (!empty($forum_moderated) && !$auth->acl_gets('m_', 'a_', intval($forum_id))) ? 0 : 1,
|
||||||
'post_edit_time' => ($mode == 'edit' && $poster_id == $user->data['user_id']) ? $current_time : 0,
|
'post_edit_time' => ($mode == 'edit' && $poster_id == $user->data['user_id']) ? $current_time : 0,
|
||||||
'enable_sig' => $enable_html,
|
'enable_sig' => $enable_html,
|
||||||
'enable_bbcode' => $enable_bbcode,
|
'enable_bbcode' => $enable_bbcode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user