[ticket/15560] Remove correct anchor_pos variable name

PHPBB3-15560
This commit is contained in:
mrgoldy 2020-04-12 13:44:04 +02:00
parent 154ebc24c2
commit 5ca9674ced

View file

@ -1203,7 +1203,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '',
// Remove any post id anchor
if ($anchor_pos = (strrpos($redirect, '#p')) !== false)
{
$redirect = substr($redirect, 0, $anchor_post);
$redirect = substr($redirect, 0, $anchor_pos);
}
$success_msg = $user->lang['POST_DELETED_SUCCESS'];