]> source.dussan.org Git - nextcloud-server.git/commitdiff
Better save then sorry
authorJoas Schilling <nickvergessen@owncloud.com>
Mon, 9 Mar 2015 18:07:22 +0000 (19:07 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 9 Mar 2015 21:37:49 +0000 (22:37 +0100)
lib/private/files/cache/storage.php

index eaa4601e4fa34c06b4ab6446b1b959e4287b9f2f..e5185f5c137a181c5a35b5b89957ab0464725cc1 100644 (file)
@@ -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');
                                }
                        }
                }