Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-03-13 19:38:56 +0300
committerRobin Appelman <robin@icewind.nl>2020-03-13 19:38:56 +0300
commit606f685457d13acf3b840445fb95ebd39599ba39 (patch)
tree4053fa3cb7b3a86418883955fe5d0deed8f011a9 /apps/sharebymail/lib
parent17bc35e4f14ba36c77c176b80dae7d3d9351f4a7 (diff)
properly set 'hide_download' as integer
the database field is a smallint, not a boolean. fixes postgresql tests Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/sharebymail/lib')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php4
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() !== '') {