mirror of
https://github.com/nextcloud/server.git
synced 2026-02-17 09:51:38 -05:00
Attempt to fix sqlite json issue
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
03b1791cca
commit
dbbc426f75
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue