summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-07 10:22:30 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-07 14:54:55 +0100
commitfddece9552a4b194cdce8c3916e33fa8597c9008 (patch)
treeac7ebf668c4dd677e92922e35ff7f0be189935b4 /lib/private/share
parent0a41cfefe38e8bf352895f2b87dd9a04fd627094 (diff)
downloadnextcloud-server-fddece9552a4b194cdce8c3916e33fa8597c9008.tar.gz
nextcloud-server-fddece9552a4b194cdce8c3916e33fa8597c9008.zip
Remove OC_DB::insertid
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index b10de850356..2b251dba1e0 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -2191,7 +2191,7 @@ class Share extends Constants {
if ($isGroupShare) {
$id = self::insertShare($queriesToExecute['groupShare']);
// Save this id, any extra rows for this group share will need to reference it
- $parent = \OC_DB::insertid('*PREFIX*share');
+ $parent = \OC::$server->getDatabaseConnection()->lastInsertId('*PREFIX*share');
unset($queriesToExecute['groupShare']);
}