aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-05 18:13:35 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-05 18:13:35 +0000
commit830276508b3cd8c658dfe67f00138de0194c5cae (patch)
tree50b088f7a6c5e8ce0724dfc199e3e36439954114 /phpBB
parent88b698c9896e6c552efbf999d1801f92046a02cc (diff)
downloadforums-830276508b3cd8c658dfe67f00138de0194c5cae.tar
forums-830276508b3cd8c658dfe67f00138de0194c5cae.tar.gz
forums-830276508b3cd8c658dfe67f00138de0194c5cae.tar.bz2
forums-830276508b3cd8c658dfe67f00138de0194c5cae.tar.xz
forums-830276508b3cd8c658dfe67f00138de0194c5cae.zip
- #5120
- #5104 git-svn-id: file:///svn/phpbb/trunk@6555 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_reasons.php2
-rw-r--r--phpBB/posting.php2
-rw-r--r--phpBB/report.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_reasons.php b/phpBB/includes/acp/acp_reasons.php
index 0dd62b5e22..72419de1ef 100644
--- a/phpBB/includes/acp/acp_reasons.php
+++ b/phpBB/includes/acp/acp_reasons.php
@@ -81,7 +81,7 @@ class acp_reasons
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
- if ($row || ($add && strtolower($reason_row['reason_title']) == 'other'))
+ if ($row || ($action == 'add' && strtolower($reason_row['reason_title']) == 'other'))
{
$error[] = $user->lang['REASON_ALREADY_EXIST'];
}
diff --git a/phpBB/posting.php b/phpBB/posting.php
index cb55c4d0b8..aa79f31167 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -118,12 +118,12 @@ switch ($mode)
default:
$sql = '';
- trigger_error('NO_POST_MODE');
break;
}
if (!$sql)
{
+ $user->setup(array('posting', 'mcp', 'viewtopic'));
trigger_error('NO_POST_MODE');
}
diff --git a/phpBB/report.php b/phpBB/report.php
index 6328540064..9679e23d6c 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -31,7 +31,7 @@ $submit = (isset($_POST['submit'])) ? true : false;
if (!$post_id)
{
- trigger_error('INVALID_MODE');
+ trigger_error('NO_POST_SELECTED');
}
$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&amp;p=$post_id") . "#p$post_id";