From 5ca9674cedee4b302524c46c4534d72098c99884 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Sun, 12 Apr 2020 13:44:04 +0200 Subject: [PATCH] [ticket/15560] Remove correct anchor_pos variable name PHPBB3-15560 --- phpBB/includes/mcp/mcp_main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index bf9c8ec1b4..5c381bfc14 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -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'];