mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Attempt to fix sqlite json issue
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
cf3d92015b
commit
9e59a6a731
1 changed files with 2 additions and 2 deletions
|
|
@ -1545,8 +1545,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