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:
Joas Schilling 2018-10-16 16:32:06 +02:00 committed by GitHub
commit c1fbf70d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ class ShareByMailProvider implements IShareProvider {
$share->setShareTime($shareTime);
$share->setSharedWith($data['share_with']);
$share->setPassword($data['password']);
$share->setSendPasswordByTalk($data['password_by_talk']);
$share->setSendPasswordByTalk((bool)$data['password_by_talk']);
if ($data['uid_initiator'] !== null) {
$share->setShareOwner($data['uid_owner']);