summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-09 19:07:22 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-16 11:44:25 +0100
commit27990b53601f845bc5eb9440a8abb65daca64ee2 (patch)
treeb5634ce8e56c439e0f7c0fe91d8a0ec63db8b9bf /lib
parent9383856ca520414fc8194e69cee7202c7fbb764a (diff)
downloadnextcloud-server-27990b53601f845bc5eb9440a8abb65daca64ee2.tar.gz
nextcloud-server-27990b53601f845bc5eb9440a8abb65daca64ee2.zip
Better save then sorry
Diffstat (limited to 'lib')
-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');
}
}
}