summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-09-19 17:18:04 +0200
committerRobin Appelman <robin@icewind.nl>2017-09-19 17:18:04 +0200
commitc83232adae1f135c2cf121a49528f7c21ea35479 (patch)
tree6ea7008fb28a5317054e94c589e863fd9f72abb1 /apps
parent1995c699284a1dc522ccb5d7035fd1dca277b10e (diff)
downloadnextcloud-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.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);