diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-14 09:18:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-14 09:18:34 +0100 |
commit | 21046f95a40c90d9bf2ac2bb71a3c4e01d39271d (patch) | |
tree | 7755ebf9cd467e25adc270e4b8b396e04336742d /apps | |
parent | fa571bb7ed0d227876adda17600a34eb6007bcf2 (diff) | |
parent | 606f685457d13acf3b840445fb95ebd39599ba39 (diff) | |
download | nextcloud-server-21046f95a40c90d9bf2ac2bb71a3c4e01d39271d.tar.gz nextcloud-server-21046f95a40c90d9bf2ac2bb71a3c4e01d39271d.zip |
Merge pull request #19937 from nextcloud/share-mail-hide-download-int
properly set 'hide_download' as integer
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index a7b8f541217..d2465a5797b 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -705,7 +705,7 @@ class ShareByMailProvider implements IShareProvider { ->setValue('password', $qb->createNamedParameter($password)) ->setValue('password_by_talk', $qb->createNamedParameter($sendPasswordByTalk, IQueryBuilder::PARAM_BOOL)) ->setValue('stime', $qb->createNamedParameter(time())) - ->setValue('hide_download', $qb->createNamedParameter($hideDownload, IQueryBuilder::PARAM_BOOL)); + ->setValue('hide_download', $qb->createNamedParameter((int)$hideDownload, IQueryBuilder::PARAM_INT)); /* * Added to fix https://github.com/owncloud/core/issues/22215 @@ -750,7 +750,7 @@ class ShareByMailProvider implements IShareProvider { ->set('password_by_talk', $qb->createNamedParameter($share->getSendPasswordByTalk(), IQueryBuilder::PARAM_BOOL)) ->set('expiration', $qb->createNamedParameter($share->getExpirationDate(), IQueryBuilder::PARAM_DATE)) ->set('note', $qb->createNamedParameter($share->getNote())) - ->set('hide_download', $qb->createNamedParameter($share->getHideDownload(), IQueryBuilder::PARAM_BOOL)) + ->set('hide_download', $qb->createNamedParameter((int)$share->getHideDownload(), IQueryBuilder::PARAM_INT)) ->execute(); if ($originalShare->getNote() !== $share->getNote() && $share->getNote() !== '') { |