Skip to content

Commit

Permalink
Merge pull request #6946 from nextcloud/12-6574
Browse files Browse the repository at this point in the history
[stable12] Fix undefined offset warning when using '/' as external storage root
  • Loading branch information
MorrisJobke authored Oct 25, 2017
2 parents aef69ef + f301b12 commit aab0c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aab0c3f

Please sign in to comment.