aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/db.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:12:31 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:37:49 +0100
commit89be55a672afe0e09a33d4997ec10c0e833d4885 (patch)
tree2789f398177333df179ab73fc5ad9926edce39ec /lib/public/db.php
parentb966a4eb17729230c461b9075143203bd50ed9e3 (diff)
downloadnextcloud-server-89be55a672afe0e09a33d4997ec10c0e833d4885.tar.gz
nextcloud-server-89be55a672afe0e09a33d4997ec10c0e833d4885.zip
let insertIfNotExist() throw the native DBALException - no need to hide the real exception
Diffstat (limited to 'lib/public/db.php')
-rw-r--r--lib/public/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/db.php b/lib/public/db.php
index 50e519bbe91..d8d81f239b2 100644
--- a/lib/public/db.php
+++ b/lib/public/db.php
@@ -65,7 +65,7 @@ class DB {
*
*/
public static function insertIfNotExist($table, $input, $compare = null) {
- return(\OC_DB::insertIfNotExist($table, $input, $compare));
+ return \OC::$server->getDatabaseConnection()->insertIfNotExist($table, $input, $compare);
}
/**