Merge pull request #23611 from nextcloud/backport/23606/stable20
[stable20] Only use index of mount point when it is there
This commit is contained in:
commit
0b46ebe3c6
|
@ -545,7 +545,11 @@ class OC_Helper {
|
|||
if ($owner) {
|
||||
$ownerDisplayName = $owner->getDisplayName();
|
||||
}
|
||||
if (substr_count($mount->getMountPoint(), '/') < 3) {
|
||||
$mountPoint = '';
|
||||
} else {
|
||||
[,,,$mountPoint] = explode('/', $mount->getMountPoint(), 4);
|
||||
}
|
||||
|
||||
return [
|
||||
'free' => $free,
|
||||
|
|
Loading…
Reference in New Issue