summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-09 17:25:02 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:37:49 +0100
commit8fa692388b29979c56ff6d0229d20e09e8ecba65 (patch)
treee3d0e47582c55aa0b4f29ef935396a7747684dac /lib/private/db.php
parent94b7fa17c55ed5c194b506ca6ab426fa38119b3c (diff)
downloadnextcloud-server-8fa692388b29979c56ff6d0229d20e09e8ecba65.tar.gz
nextcloud-server-8fa692388b29979c56ff6d0229d20e09e8ecba65.zip
Allow specifying the compare-array for insertIfNotExists()
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index dc25092e276..3993ae27748 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -172,8 +172,8 @@ class OC_DB {
* @param array $input An array of fieldname/value pairs
* @return boolean number of updated rows
*/
- public static function insertIfNotExist($table, $input) {
- return \OC::$server->getDatabaseConnection()->insertIfNotExist($table, $input);
+ public static function insertIfNotExist($table, $input, $compare = null) {
+ return \OC::$server->getDatabaseConnection()->insertIfNotExist($table, $input, $compare);
}
/**