[Pkg-owncloud-commits] [owncloud] 48/118: Better save then sorry

David Prévot taffit at moszumanska.debian.org
Fri Mar 27 22:13:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 27990b53601f845bc5eb9440a8abb65daca64ee2
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Mon Mar 9 19:07:22 2015 +0100

    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 eaa4601..e5185f5 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');
 				}
 			}
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list