Merge pull request #11802 from nextcloud/bugfix/noid/fix-password_by_talk-not-a-boolean
Fix a case where "password_by_talk" was not a boolean
This commit is contained in:
commit
78589a2f9b
|
@ -980,7 +980,7 @@ class ShareByMailProvider implements IShareProvider {
|
||||||
$share->setShareTime($shareTime);
|
$share->setShareTime($shareTime);
|
||||||
$share->setSharedWith($data['share_with']);
|
$share->setSharedWith($data['share_with']);
|
||||||
$share->setPassword($data['password']);
|
$share->setPassword($data['password']);
|
||||||
$share->setSendPasswordByTalk($data['password_by_talk']);
|
$share->setSendPasswordByTalk((bool)$data['password_by_talk']);
|
||||||
|
|
||||||
if ($data['uid_initiator'] !== null) {
|
if ($data['uid_initiator'] !== null) {
|
||||||
$share->setShareOwner($data['uid_owner']);
|
$share->setShareOwner($data['uid_owner']);
|
||||||
|
|
Loading…
Reference in New Issue