From: Roland Haeder <roland@mxchange.org>
Date: Sat, 12 Sep 2015 06:31:50 +0000 (+0200)
Subject: A bit better test.
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f72691c4e6ac0bee9e24ff44529dc7e55fc20e26;p=quix0rs-gnu-social.git

A bit better test.

Signed-off-by: Roland Haeder <roland@mxchange.org>
---

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';