diff options
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 6b43e0f9dcf..889428db99a 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -681,7 +681,9 @@ class ShareAPIController extends OCSController { $share->setNote($note); } - $share = $this->setShareAttributes($share, $attributes); + if ($attributes !== null) { + $share = $this->setShareAttributes($share, $attributes); + } try { $share = $this->shareManager->createShare($share); @@ -1228,7 +1230,9 @@ class ShareAPIController extends OCSController { } } - $share = $this->setShareAttributes($share, $attributes); + if ($attributes !== null) { + $share = $this->setShareAttributes($share, $attributes); + } try { $share = $this->shareManager->updateShare($share); |