diff options
author | David M <davidmj@users.sourceforge.net> | 2007-04-15 14:38:23 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-04-15 14:38:23 +0000 |
commit | 24367c94e98c939d6c1e67e9bbf5db77503b0ba0 (patch) | |
tree | 84eac4444e2ec1ec07a38e940c65079d02afa7f3 | |
parent | fb2454314450ad36dc5c1480749dad51d9d1c87e (diff) | |
download | forums-24367c94e98c939d6c1e67e9bbf5db77503b0ba0.tar forums-24367c94e98c939d6c1e67e9bbf5db77503b0ba0.tar.gz forums-24367c94e98c939d6c1e67e9bbf5db77503b0ba0.tar.bz2 forums-24367c94e98c939d6c1e67e9bbf5db77503b0ba0.tar.xz forums-24367c94e98c939d6c1e67e9bbf5db77503b0ba0.zip |
#9864
git-svn-id: file:///svn/phpbb/trunk@7356 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/posting.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index d1b6946d6d..07ed0946ee 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -85,6 +85,7 @@ switch ($mode) case 'delete': if (!$post_id) { + $user->setup('posting'); trigger_error('NO_POST'); } @@ -123,7 +124,7 @@ switch ($mode) if (!$sql) { - $user->setup(array('posting', 'mcp', 'viewtopic')); + $user->setup('posting'); trigger_error('NO_POST_MODE'); } @@ -133,6 +134,10 @@ $db->sql_freeresult($result); if (!$post_data) { + if (!($mode == 'post' || $mode == 'bump' || $mode == 'reply')) + { + $user->setup('posting'); + } trigger_error(($mode == 'post' || $mode == 'bump' || $mode == 'reply') ? 'NO_TOPIC' : 'NO_POST'); } |