summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-20 11:26:19 +0200
committerGitHub <noreply@github.com>2017-09-20 11:26:19 +0200
commitf900ba8183c64f03079a594bd9f6c153e3bba9f4 (patch)
tree32b9e7d6623809ae9a15dfcc59d4020a2b162412 /apps
parentb593d37d4784340294b45439e1392a58c42fca57 (diff)
parentc83232adae1f135c2cf121a49528f7c21ea35479 (diff)
downloadnextcloud-server-f900ba8183c64f03079a594bd9f6c153e3bba9f4.tar.gz
nextcloud-server-f900ba8183c64f03079a594bd9f6c153e3bba9f4.zip
Merge pull request #6574 from nextcloud/external-storage-root-undefined-offset
Fix undefined offset warning when using '/' as external storage root
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Api.php2
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);