mirror of
https://github.com/nextcloud/server.git
synced 2026-07-05 07:48:39 -04:00
Patch for master-branch
This commit is contained in:
parent
029d86a9ac
commit
28cd629de6
1 changed files with 1 additions and 1 deletions
|
|
@ -1658,7 +1658,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