From 4848d0adad800c7db30266bc97796910a3151f1e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 12 Sep 2015 08:31:50 +0200 Subject: [PATCH] A bit better test. Signed-off-by: Roland Haeder --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index e203dff3ba..2a276bde50 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1303,7 +1303,7 @@ function common_is_sensitive($action) function common_path($relative, $ssl=false, $addSession=true) { - $pathpart = (common_config('site', 'path')) ? common_config('site', 'path')."/" : ''; + $pathpart = (!empty(common_config('site', 'path'))) ? common_config('site', 'path') . '/' : ''; if (($ssl && (common_config('site', 'ssl') === 'sometimes')) || GNUsocial::isHTTPS() -- 2.39.5