Skip to content

Commit

Permalink
Merge pull request #11802 from nextcloud/bugfix/noid/fix-password_by_…
Browse files Browse the repository at this point in the history
…talk-not-a-boolean

Fix a case where "password_by_talk" was not a boolean
  • Loading branch information
rullzer authored Oct 13, 2018
2 parents 85694c6 + 24a2107 commit 78589a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ protected function createShareObject($data) {
$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']);
Expand Down

0 comments on commit 78589a2

Please sign in to comment.