1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/16966] Fix redirect link after permanently deleting posts

PHPBB3-16966
This commit is contained in:
rxu 2022-02-11 20:18:56 +07:00
parent c9db94f91c
commit a466be10c2
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -1245,7 +1245,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '',
else
{
// Remove any post id anchor
if ($anchor_pos = (strrpos($redirect, '#p')) !== false)
if (($anchor_pos = strrpos($redirect, '#p')) !== false)
{
$redirect = substr($redirect, 0, $anchor_pos);
}