Skip to content

Commit

Permalink
Attempt to fix sqlite json issue
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed May 31, 2022
1 parent 29c2cf3 commit 9def5b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1556,8 +1556,8 @@ public function getAllShares(): iterable {
* @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) {
Expand Down

0 comments on commit 9def5b3

Please sign in to comment.