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:
Roeland Jago Douma 2018-10-13 11:10:48 +02:00 committed by GitHub
commit 78589a2f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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']);