only save sharing information if its given, eg. not the case for CardDAV

This commit is contained in:
Ralf Becker 2020-10-15 13:02:32 +02:00
parent 9567a1fed3
commit 6b57ddac00

View File

@ -1164,10 +1164,10 @@ class Sql extends Api\Storage
{
parent::update($update);
}
// save sharing information
if (!$err)
// save sharing information, if given, eg. not the case for CardDAV
if (!$err && isset($this->data['shared']))
{
$this->data['shared'] = $this->save_shared($this->data['id'], (array)$this->data['shared']);
$this->data['shared'] = $this->save_shared($this->data['id'], $this->data['shared']);
}
return $err;
}