From 3115d66d60927dfff7c2cf5523da7dfaa9d11773 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 9 Mar 2015 19:07:22 +0100 Subject: [PATCH] Better save then sorry --- lib/private/files/cache/storage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/files/cache/storage.php b/lib/private/files/cache/storage.php index eaa4601e4f..e5185f5c13 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'); } } }