Better save then sorry

This commit is contained in:
Joas Schilling 2015-03-09 19:07:22 +01:00 committed by Thomas Müller
parent 940163e16b
commit 3115d66d60
1 changed files with 2 additions and 0 deletions

View 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');
}
}
}