summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-05-25 17:23:02 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-07-28 16:53:23 +0200
commitdbbc426f754df9b39b95f182103e914b3348ff20 (patch)
tree07d6ce78256342c01fb722e9fdfca88b27107bcb /lib/private
parent03b1791cca3e0334637aa232d1f7c11850793646 (diff)
downloadnextcloud-server-dbbc426f754df9b39b95f182103e914b3348ff20.tar.gz
nextcloud-server-dbbc426f754df9b39b95f182103e914b3348ff20.zip
Attempt to fix sqlite json issue
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 6f9f62dec03..af1e15d86c2 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -1568,8 +1568,8 @@ class DefaultShareProvider implements IShareProvider {
* @param string|null $data
* @return IShare modified share
*/
- private function updateShareAttributes(IShare $share, $data) {
- if ($data !== null) {
+ private function updateShareAttributes(IShare $share, ?string $data) {
+ if ($data !== null && $data !== '') {
$attributes = new ShareAttributes();
$compressedAttributes = \json_decode($data, true);
foreach ($compressedAttributes as $compressedAttribute) {