From 89be55a672afe0e09a33d4997ec10c0e833d4885 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 9 Mar 2015 22:12:31 +0100 Subject: let insertIfNotExist() throw the native DBALException - no need to hide the real exception --- lib/public/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/public/db.php') 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); } /** -- cgit v1.2.3