summaryrefslogtreecommitdiff
path: root/classes/urlhelper.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-05-21 17:10:32 +0300
committerAndrew Dolgov <[email protected]>2021-05-21 17:10:32 +0300
commit326850845da67fcdd3bf736a470bad6233234ec8 (patch)
treea80c1e80a02aa10fdf10e9116229edb09428a9c7 /classes/urlhelper.php
parentdff479af649005c819e16ed8e75278ab50c955b3 (diff)
UrlHelper::rewrite_relative: don't try to feed NULL to with_trailing_slash()
Diffstat (limited to 'classes/urlhelper.php')
-rw-r--r--classes/urlhelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/urlhelper.php b/classes/urlhelper.php
index 136046701..03f0c474d 100644
--- a/classes/urlhelper.php
+++ b/classes/urlhelper.php
@@ -51,7 +51,7 @@ class UrlHelper {
// (i'm not sure if it's a good idea)
if (strpos($rel_parts['path'], '/') !== 0) {
- $rel_parts['path'] = with_trailing_slash($base_parts['path']) . $rel_parts['path'];
+ $rel_parts['path'] = with_trailing_slash($base_parts['path'] ?? "") . $rel_parts['path'];
}
$rel_parts['path'] = str_replace("/./", "/", $rel_parts['path']);