summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-17 11:06:49 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-17 11:06:49 +0200
commitaf335a39f182631324cea90cdba85b200aa7fb2d (patch)
treea1d16f70a62f4f687814d0cf056c7ca65d8a5112
parent263dc70bfdf28446b0f7e9162de205caaf55d257 (diff)
downloadnextcloud-server-af335a39f182631324cea90cdba85b200aa7fb2d.tar.gz
nextcloud-server-af335a39f182631324cea90cdba85b200aa7fb2d.zip
Add PHPDoc about sanitization of "insertIfNotExist"
Let's document this potential pitfall properly.
-rw-r--r--lib/private/db/adapter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/adapter.php b/lib/private/db/adapter.php
index 6742ccdbb45..972008776f6 100644
--- a/lib/private/db/adapter.php
+++ b/lib/private/db/adapter.php
@@ -42,7 +42,7 @@ class Adapter {
/**
* insert the @input values when they do not exist yet
* @param string $table name
- * @param array $input key->value pairs
+ * @param array $input key->value pair, key has to be sanitized properly
* @return int count of inserted rows
*/
public function insertIfNotExist($table, $input) {