diff options
author | Robin Appelman <robin@icewind.nl> | 2017-09-19 17:18:04 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-09-19 17:18:04 +0200 |
commit | c83232adae1f135c2cf121a49528f7c21ea35479 (patch) | |
tree | 6ea7008fb28a5317054e94c589e863fd9f72abb1 /apps | |
parent | 1995c699284a1dc522ccb5d7035fd1dca277b10e (diff) | |
download | nextcloud-server-c83232adae1f135c2cf121a49528f7c21ea35479.tar.gz nextcloud-server-c83232adae1f135c2cf121a49528f7c21ea35479.zip |
Fix undefined offset warning when using '/' as external storage root
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Lib/Api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Api.php b/apps/files_external/lib/Lib/Api.php index 82dd377cd16..6b10443bbdc 100644 --- a/apps/files_external/lib/Lib/Api.php +++ b/apps/files_external/lib/Lib/Api.php @@ -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); |