call self::getNumericStorageId() to get the numeric ID

This commit is contained in:
Bjoern Schiessle 2014-06-10 14:48:19 +02:00
parent f4a183e753
commit 9dc0befcca

View file

@ -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));