mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Fix a case where "password_by_talk" was not a boolean (e.g. null or "0") and actively cast it to a boolean
This was the error message that we have seen: ``` Argument 1 passed to OC\\Share20\\Share::setSendPasswordByTalk() must be of the type boolean, null given, called in apps/sharebymail/lib/ShareByMailProvider.php on line 981 ``` Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
91c44c84cf
commit
9454de50b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue