diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-09 17:25:02 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 22:37:49 +0100 |
commit | 8fa692388b29979c56ff6d0229d20e09e8ecba65 (patch) | |
tree | e3d0e47582c55aa0b4f29ef935396a7747684dac /lib/private/db.php | |
parent | 94b7fa17c55ed5c194b506ca6ab426fa38119b3c (diff) | |
download | nextcloud-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.php | 4 |
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); } /** |