summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-10-13 17:27:13 +0200
committerVincent Petry <pvince81@owncloud.com>2014-10-13 17:27:13 +0200
commite95372bf0114d7f6ea2870a3c57ca88a334a6743 (patch)
treeb4a8ae5b0b9541518eb812166430f9d6f9bd5713
parent48ce2ef18b30150794c2b8f3606377d5d9b95258 (diff)
parentd485c0098d58454b8dbd25e574a363a500244942 (diff)
downloadnextcloud-server-e95372bf0114d7f6ea2870a3c57ca88a334a6743.tar.gz
nextcloud-server-e95372bf0114d7f6ea2870a3c57ca88a334a6743.zip
Merge pull request #11546 from owncloud/users-deletewithfilecache
Retrieve storage numeric id earlier when still available
-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 a38656d8499..d7d57811a7d 100644
--- a/lib/private/files/cache/storage.php
+++ b/lib/private/files/cache/storage.php
@@ -105,10 +105,10 @@ class Storage {
*/
public static function remove($storageId) {
$storageId = self::adjustStorageId($storageId);
+ $numericId = self::getNumericStorageId($storageId);
$sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';
\OC_DB::executeAudited($sql, array($storageId));
- $numericId = self::getNumericStorageId($storageId);
if (!is_null($numericId)) {
$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?';
\OC_DB::executeAudited($sql, array($numericId));