1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/17022] Fix SQL report link

PHPBB-17022
This commit is contained in:
Marc Alexander
2024-07-26 18:56:36 +02:00
parent 132bd6cdb5
commit a7720522a2

View File

@@ -4032,7 +4032,9 @@ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \php
if ($auth->acl_get('a_')) if ($auth->acl_get('a_'))
{ {
$debug_info[] = '<a href="' . build_url() . '&amp;explain=1">SQL Explain</a>'; $page_url = build_url();
$page_url .= ((!str_contains($page_url, '?')) ? '?' : '&amp;') . 'explain=1';
$debug_info[] = '<a href="' . $page_url . '">SQL Explain</a>';
} }
} }