summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-09 19:07:22 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:37:49 +0100
commit3115d66d60927dfff7c2cf5523da7dfaa9d11773 (patch)
treede18953dfad23f22fd8a7225119e974fe3a35510 /lib/private/files/cache
parent940163e16b6ee49132abfcb4177021c571e488cd (diff)
downloadnextcloud-server-3115d66d60927dfff7c2cf5523da7dfaa9d11773.tar.gz
nextcloud-server-3115d66d60927dfff7c2cf5523da7dfaa9d11773.zip
Better save then sorry
Diffstat (limited to 'lib/private/files/cache')
-rw-r--r--lib/private/files/cache/storage.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php
index eaa4601e4fa..e5185f5c137 100644
--- a/lib/private/files/cache/storage.php
+++ b/lib/private/files/cache/storage.php
@@ -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');
}
}
}