mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-03 00:28:53 +00:00
- #5120
- #5104 git-svn-id: file:///svn/phpbb/trunk@6555 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
88b698c989
commit
830276508b
3 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ class acp_reasons
|
||||||
$row = $db->sql_fetchrow($result);
|
$row = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($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'];
|
$error[] = $user->lang['REASON_ALREADY_EXIST'];
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,12 +118,12 @@ switch ($mode)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$sql = '';
|
$sql = '';
|
||||||
trigger_error('NO_POST_MODE');
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$sql)
|
if (!$sql)
|
||||||
{
|
{
|
||||||
|
$user->setup(array('posting', 'mcp', 'viewtopic'));
|
||||||
trigger_error('NO_POST_MODE');
|
trigger_error('NO_POST_MODE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ $submit = (isset($_POST['submit'])) ? true : false;
|
||||||
|
|
||||||
if (!$post_id)
|
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";
|
$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&p=$post_id") . "#p$post_id";
|
||||||
|
|
Loading…
Add table
Reference in a new issue