Merge pull request #11851 from nextcloud/backport/11802/fix-password_by_talk-not-a-boolean
[stable14] Fix a case where "password_by_talk" was not a boolean
This commit is contained in:
commit
c1fbf70d83
|
@ -978,7 +978,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