mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/12584] Redirect only on non-empty $message
PHPBB3-12584
This commit is contained in:
parent
fdb53b23fb
commit
62cb7e0c10
1 changed files with 7 additions and 3 deletions
|
@ -424,9 +424,13 @@ class mcp_warn
|
||||||
{
|
{
|
||||||
$message = $user->lang['FORM_INVALID'];
|
$message = $user->lang['FORM_INVALID'];
|
||||||
}
|
}
|
||||||
$redirect = append_sid("{$phpbb_root_path}mcp.$phpEx", "i=notes&mode=user_notes&u=$user_id");
|
|
||||||
meta_refresh(2, $redirect);
|
if (!empty($message))
|
||||||
trigger_error($message . '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . $redirect . '">', '</a>'));
|
{
|
||||||
|
$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>'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the appropriate user information for the user we are looking at
|
// Generate the appropriate user information for the user we are looking at
|
||||||
|
|
Loading…
Add table
Reference in a new issue