diff --git a/phpBB/includes/usercp_register.php b/phpBB/includes/usercp_register.php index cfcecd8c37..3ca5479133 100644 --- a/phpBB/includes/usercp_register.php +++ b/phpBB/includes/usercp_register.php @@ -83,7 +83,7 @@ if ( // session id check if ($sid == '' || $sid != $userdata['session_id']) { - message_die(ERROR, 'Invalid_session'); + message_die(GENERAL_ERROR, 'Invalid_session'); } include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); diff --git a/phpBB/includes/usercp_sendpasswd.php b/phpBB/includes/usercp_sendpasswd.php index 609907ede9..c8de08d97e 100644 --- a/phpBB/includes/usercp_sendpasswd.php +++ b/phpBB/includes/usercp_sendpasswd.php @@ -32,7 +32,7 @@ if ( isset($HTTP_POST_VARS['submit']) ) // session id check if ($sid == '' || $sid != $userdata['session_id']) { - message_die(ERROR, 'Invalid_session'); + message_die(GENERAL_ERROR, 'Invalid_session'); } $username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags($HTTP_POST_VARS['username'])) : '';