diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-14 19:10:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 19:10:12 +0200 |
commit | b964e053125fb03fd9c90c4faceb138ed4039421 (patch) | |
tree | bb82c275742e2c79b43e03c9696d75b2f34d2cfc /lib | |
parent | 3d2039f04104c7ad2ae90dd646cfc7880b2c4b17 (diff) | |
parent | 64dd4ce0ee2ebbf4937a106dfd6c0fde2c961213 (diff) | |
download | nextcloud-server-b964e053125fb03fd9c90c4faceb138ed4039421.tar.gz nextcloud-server-b964e053125fb03fd9c90c4faceb138ed4039421.zip |
Merge pull request #48673 from nextcloud/fix/null-label
fix(share): Return empty string if no label is set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/DefaultShareProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index 3ea429dfe3d..af993b7f314 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -991,7 +991,7 @@ class DefaultShareProvider implements IShareProviderWithNotification, IShareProv $qb->expr()->eq('item_type', $qb->createNamedParameter('file')), $qb->expr()->eq('item_type', $qb->createNamedParameter('folder')) )) - ->execute(); + ->executeQuery(); $data = $cursor->fetch(); @@ -1024,7 +1024,7 @@ class DefaultShareProvider implements IShareProviderWithNotification, IShareProv ->setNote((string)$data['note']) ->setMailSend((bool)$data['mail_send']) ->setStatus((int)$data['accepted']) - ->setLabel($data['label']); + ->setLabel($data['label'] ?? ''); $shareTime = new \DateTime(); $shareTime->setTimestamp((int)$data['stime']); |