call self::getNumericStorageId() to get the numeric ID
This commit is contained in:
parent
f4a183e753
commit
9dc0befcca
1 changed files with 1 additions and 1 deletions
2
lib/private/files/cache/storage.php
vendored
2
lib/private/files/cache/storage.php
vendored
|
@ -101,7 +101,7 @@ class Storage {
|
|||
$sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';
|
||||
\OC_DB::executeAudited($sql, array($storageId));
|
||||
|
||||
$numericId = self::exists($storageId);
|
||||
$numericId = self::getNumericStorageId($storageId);
|
||||
if (!is_null($numericId)) {
|
||||
$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?';
|
||||
\OC_DB::executeAudited($sql, array($numericId));
|
||||
|
|
Loading…
Reference in a new issue