diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index 3d958081c4..cd67561d11 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -699,7 +699,7 @@ else if ( ( $delete && $mark_list ) || $delete_all ) include($phpbb_root_path . 'includes/page_tail.'.$phpEx); } - else if ($confirm && $_POST['sid'] === $userdata['session_id']) + else if ($confirm && $sid === $userdata['session_id']) { $delete_sql_id = '';