Skip to content

Commit 9def5b3

Browse files
committed
Attempt to fix sqlite json issue
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
1 parent 29c2cf3 commit 9def5b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Share20/DefaultShareProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,8 +1556,8 @@ public function getAllShares(): iterable {
15561556
* @param string|null $data
15571557
* @return IShare modified share
15581558
*/
1559-
private function updateShareAttributes(IShare $share, $data) {
1560-
if ($data !== null) {
1559+
private function updateShareAttributes(IShare $share, ?string $data) {
1560+
if ($data !== null && $data !== '') {
15611561
$attributes = new ShareAttributes();
15621562
$compressedAttributes = \json_decode($data, true);
15631563
foreach ($compressedAttributes as $compressedAttribute) {

0 commit comments

Comments
 (0)