diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 57d0aed94d..9f368727f6 100644
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -424,9 +424,13 @@ class mcp_warn
{
$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);
- trigger_error($message . '
' . sprintf($user->lang['RETURN_PAGE'], '', ''));
+
+ 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 . '
' . sprintf($user->lang['RETURN_PAGE'], '', ''));
+ }
}
// Generate the appropriate user information for the user we are looking at