fix check for path-value to avoid double-slash output, fixes #648
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -42,7 +42,7 @@ function makePathfield($path, $uid, $gid, $fieldType, $value = '')
|
||||
// but dirList holds the paths with starting slash
|
||||
// so we just add one here to get the correct
|
||||
// default path selected, #225
|
||||
if ($value != '/') {
|
||||
if (substr($value, 0, 1) != '/') {
|
||||
$value = '/'.$value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user