diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-11-08 10:59:00 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-11-08 10:59:00 +0000 |
commit | 1c5f838a2daa80916a7a894bf3cddd2e964cbd89 (patch) | |
tree | df46b40833e59114f27bbedc6c66bc6648ef845b /phpBB/posting.php | |
parent | 097a1caca88983473cefad53183d30f820adcb4a (diff) | |
download | forums-1c5f838a2daa80916a7a894bf3cddd2e964cbd89.tar forums-1c5f838a2daa80916a7a894bf3cddd2e964cbd89.tar.gz forums-1c5f838a2daa80916a7a894bf3cddd2e964cbd89.tar.bz2 forums-1c5f838a2daa80916a7a894bf3cddd2e964cbd89.tar.xz forums-1c5f838a2daa80916a7a894bf3cddd2e964cbd89.zip |
Incorrect check on moderated forum field
git-svn-id: file:///svn/phpbb/trunk@3019 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 4 |
1 files 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, |