mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
[ticket/12583] Redirect only on non-empty $message
PHPBB3-12583
This commit is contained in:
@ -316,10 +316,14 @@ class mcp_warn
|
||||
{
|
||||
$message = $user->lang['FORM_INVALID'];
|
||||
}
|
||||
|
||||
if (!empty($message))
|
||||
{
|
||||
$redirect = append_sid("{$phpbb_root_path}mcp.$phpEx", "i=notes&mode=user_notes&u=$user_id");
|
||||
meta_refresh(2, $redirect);
|
||||
trigger_error($message . '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $redirect . '">', '</a>'));
|
||||
}
|
||||
}
|
||||
|
||||
// OK, they didn't submit a warning so lets build the page for them to do so
|
||||
|
||||
|
Reference in New Issue
Block a user