Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Attempt to fix sqlite json issue
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 authored and CarlSchwan committed Aug 3, 2022
commit 9e59a6a73117ca458d92dced49d797c12496e9d7
4 changes: 2 additions & 2 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1545,8 +1545,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