From 1c5f838a2daa80916a7a894bf3cddd2e964cbd89 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Fri, 8 Nov 2002 10:59:00 +0000 Subject: [PATCH] Incorrect check on moderated forum field git-svn-id: file:///svn/phpbb/trunk@3019 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index b0555dc838..8d02f31963 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -293,7 +293,7 @@ if (isset($post)) 'topic_time' => $current_time, 'topic_type' => intval($topic_type), '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)) { @@ -317,7 +317,7 @@ if (isset($post)) 'post_username' => ($username != '') ? $username : '', 'poster_ip' => $user->ip, '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, 'enable_sig' => $enable_html, 'enable_bbcode' => $enable_bbcode,