diff options
Diffstat (limited to 'lib/private/files/cache/storage.php')
-rw-r--r-- | lib/private/files/cache/storage.php | 2 |
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)); |