Merge pull request #17993 from waleczny/patch-1

Get first element of nodes array
This commit is contained in:
Roeland Jago Douma 2019-11-25 10:05:23 +01:00 committed by GitHub
commit da45eee634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class ShareAPIController extends OCSController {
throw new NotFoundException();
}
} else {
$node = $nodes[0];
$node = reset($nodes);
}
}