diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-16 16:00:46 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-17 10:10:50 +0200 |
commit | dc13f9cc1e3d8dce1c18d2c7920afe99b7bfa475 (patch) | |
tree | add5fe8603a640c5621655f9364c1291c53a9b18 /lib/private/legacy | |
parent | 8ca6fcace7dc22230a7afe84936ca01470f50d00 (diff) | |
download | nextcloud-server-dc13f9cc1e3d8dce1c18d2c7920afe99b7bfa475.tar.gz nextcloud-server-dc13f9cc1e3d8dce1c18d2c7920afe99b7bfa475.zip |
fix(Files): Handle getOwner() returning falsefix/storage/get-owner-false
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/OC_Helper.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php index 33cc966da2a..6da063ef2ce 100644 --- a/lib/private/legacy/OC_Helper.php +++ b/lib/private/legacy/OC_Helper.php @@ -541,10 +541,9 @@ class OC_Helper { $relative = 0; } - /** @var string $ownerId */ $ownerId = $storage->getOwner($path); $ownerDisplayName = ''; - if ($ownerId) { + if ($ownerId !== false) { $ownerDisplayName = \OC::$server->getUserManager()->getDisplayName($ownerId) ?? ''; } |