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
parent 03b1791cca
commit dbbc426f75
No known key found for this signature in database
GPG Key ID: C3AA6B3A5EFA7AC5
  1. 4
      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) {

Loading…
Cancel
Save