mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #6574 from nextcloud/external-storage-root-undefined-offset
Fix undefined offset warning when using '/' as external storage root
This commit is contained in:
commit
f900ba8183
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class Api {
|
|||
private static function formatMount($mountPoint, $mountConfig) {
|
||||
// strip "/$user/files" from mount point
|
||||
$mountPoint = explode('/', trim($mountPoint, '/'), 3);
|
||||
$mountPoint = $mountPoint[2];
|
||||
$mountPoint = isset($mountPoint[2]) ? $mountPoint[2] : '';
|
||||
|
||||
// split path from mount point
|
||||
$path = dirname($mountPoint);
|
||||
|
|
|
|||
Loading…
Reference in a new issue