aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/storage.php
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/files/cache/storage.php
parent0a41cfefe38e8bf352895f2b87dd9a04fd627094 (diff)
downloadnextcloud-server-fddece9552a4b194cdce8c3916e33fa8597c9008.tar.gz
nextcloud-server-fddece9552a4b194cdce8c3916e33fa8597c9008.zip
Remove OC_DB::insertid
Diffstat (limited to 'lib/private/files/cache/storage.php')
-rw-r--r--lib/private/files/cache/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php
index cee69194095..e5235d1ca92 100644
--- a/lib/private/files/cache/storage.php
+++ b/lib/private/files/cache/storage.php
@@ -61,7 +61,7 @@ class Storage {
$connection = \OC_DB::getConnection();
$available = $isAvailable ? 1 : 0;
if ($connection->insertIfNotExist('*PREFIX*storages', ['id' => $this->storageId, 'available' => $available])) {
- $this->numericId = \OC_DB::insertid('*PREFIX*storages');
+ $this->numericId = \OC::$server->getDatabaseConnection()->lastInsertId('*PREFIX*storages');
} else {
if ($row = self::getStorageById($this->storageId)) {
$this->numericId = $row['numeric_id'];