diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 9151a5130a..2c01c112ad 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1392,7 +1392,7 @@ class View { } $ownerId = $storage->getOwner($internalPath); $owner = null; - if ($ownerId !== null) { + if ($ownerId !== null && $ownerId !== false) { // ownerId might be null if files are accessed with an access token without file system access $owner = $this->getUserObjectForOwner($ownerId); }