aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sharebymail')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 03e46c8e021..2484ccdd720 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -690,9 +690,7 @@ class ShareByMailProvider implements IShareProvider {
$qb->setValue('file_target', $qb->createNamedParameter(''));
$qb->execute();
- $id = $qb->getLastInsertId();
-
- return (int)$id;
+ return $qb->getLastInsertId();
}
/**