aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 420a13c200..40583dee54 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2421,7 +2421,7 @@ function append_sid($url, $params = false, $is_amp = true, $session_id = false)
$params = false;
}
- $corrected_root = phpbb_get_web_root_path($symfony_request);
+ $corrected_root = $symfony_request !== null ? phpbb_get_web_root_path($symfony_request) : '';
if ($corrected_root)
{
$url = $corrected_root . substr($url, strlen($phpbb_root_path));