summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/DefaultShareProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Share20/DefaultShareProvider.php')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index a6a8bdb9698..ec0f25cbae5 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -202,6 +202,10 @@ class DefaultShareProvider implements IShareProvider {
// Set the file target
$qb->setValue('file_target', $qb->createNamedParameter($share->getTarget()));
+ if ($share->getNote() !== '') {
+ $qb->setValue('note', $qb->createNamedParameter($share->getNote()));
+ }
+
// Set the time this share was created
$qb->setValue('stime', $qb->createNamedParameter(time()));