diff options
Diffstat (limited to 'classes/urlhelper.php')
-rw-r--r-- | classes/urlhelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/urlhelper.php b/classes/urlhelper.php index 57046b600..8cd69abe4 100644 --- a/classes/urlhelper.php +++ b/classes/urlhelper.php @@ -110,7 +110,7 @@ class UrlHelper { $rel_parts['host'] = $base_parts['host'] ?? ""; $rel_parts['scheme'] = $base_parts['scheme'] ?? ""; - if ($rel_parts['path'] ?? false) { + if (isset($rel_parts['path'])) { // we append dirname() of base path to relative URL path as per RFC 3986 section 5.2.2 $base_path = with_trailing_slash(dirname($base_parts['path'])); |