- #5104


git-svn-id: file:///svn/phpbb/trunk@6555 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-11-05 18:13:35 +00:00
parent 88b698c989
commit 830276508b
3 changed files with 3 additions and 3 deletions

View file

@ -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'];
}

View file

@ -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');
}

View file

@ -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&p=$post_id") . "#p$post_id";