Browse Source
Attempt to fix sqlite json issue
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
pull/32482/head
Vincent Petry
4 years ago
committed by
Carl Schwan
No known key found for this signature in database
GPG Key ID: C3AA6B3A5EFA7AC5
1 changed files with
2 additions and
2 deletions
-
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) { |
|
|
|
|