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:
Michael Kaufmann (d00p)
2011-03-09 16:36:29 +01:00
parent f30d7aecc8
commit f02a8d73c7

View File

@@ -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;
}