aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/posting.php7
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');
}