From f72691c4e6ac0bee9e24ff44529dc7e55fc20e26 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 704dd0bf4c..5ab33e9c97 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1395,7 +1395,7 @@ function common_local_url($action, $args=null, $params=null, $fragment=null, $ad 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 && GNUsocial::useHTTPS()) { $proto = 'https'; -- 2.39.5