mirror of
https://github.com/nextcloud/server.git
synced 2026-04-13 21:17:20 -04:00
Merge pull request #29304 from JanBartels/master
This commit is contained in:
commit
867579ced2
1 changed files with 1 additions and 1 deletions
|
|
@ -1667,7 +1667,7 @@ class Manager implements IManager {
|
|||
if ($path->getId() !== $userFolder->getId() && !$userFolder->isSubNode($path)) {
|
||||
$nodes = $userFolder->getById($path->getId());
|
||||
$path = array_shift($nodes);
|
||||
if ($path->getOwner() === null) {
|
||||
if ($path === null || $path->getOwner() === null) {
|
||||
return [];
|
||||
}
|
||||
$owner = $path->getOwner()->getUID();
|
||||
|
|
|
|||
Loading…
Reference in a new issue