From e8106707d8e1b28ca8cd7961f384cafeb0cae545 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 14 Jun 2013 14:36:05 +0000 Subject: [PATCH] fixing a nasty bug when ALTERNC_HTML finish with a / ... --- bureau/class/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/functions.php b/bureau/class/functions.php index 7c92bff7..5fbdd7b4 100644 --- a/bureau/class/functions.php +++ b/bureau/class/functions.php @@ -227,7 +227,7 @@ function getuserpath($user = null) { global $mem; $user = $mem->user['login']; } - return ALTERNC_HTML."/".substr($user,0,1)."/".$user; + return rtrim(ALTERNC_HTML,"/")."/".substr($user,0,1)."/".$user; } /* ECHOes checked="checked" only if the parameter is true