diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 0ef9200beb..df55c44134 100644
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -316,9 +316,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'], '', ''));
+ }
}
// OK, they didn't submit a warning so lets build the page for them to do so