mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Better save then sorry
This commit is contained in:
parent
940163e16b
commit
3115d66d60
1 changed files with 2 additions and 0 deletions
2
lib/private/files/cache/storage.php
vendored
2
lib/private/files/cache/storage.php
vendored
|
|
@ -42,6 +42,8 @@ class Storage {
|
|||
$result = \OC_DB::executeAudited($sql, array($this->storageId));
|
||||
if ($row = $result->fetchRow()) {
|
||||
$this->numericId = $row['numeric_id'];
|
||||
} else {
|
||||
throw new \Exception('Storage exists when inserting and does not exist on select... go away');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue