diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-07-13 08:39:58 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-07-13 08:39:58 -0400 |
commit | 2cab755b9df35f5e338151cf1e94cbce5f544e98 (patch) | |
tree | 53dc8389e978c00b4a4b54055d4da5f618c99dbb | |
parent | cf15971dc02b59e2ea36041aaec69bc1b9b21a64 (diff) | |
download | elgg-2cab755b9df35f5e338151cf1e94cbce5f544e98.tar.gz elgg-2cab755b9df35f5e338151cf1e94cbce5f544e98.tar.bz2 |
adds warning for those using a string value with the operand "IN" for metadata pairs
-rw-r--r-- | engine/lib/metadata.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 046b85124..d2f8d4cd4 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.php @@ -402,9 +402,11 @@ function elgg_enable_metadata(array $options) { * 'operand' => '=', * 'case_sensitive' => TRUE * ) - * Currently if multiple values are sent via + * Currently if multiple values are sent via * an array (value => array('value1', 'value2') * the pair's operand will be forced to "IN". + * If passing "IN" as the operand and a string as the value, + * the value must be a properly quoted and escaped string. * * metadata_name_value_pairs_operator => NULL|STR The operator to use for combining * (name = value) OPERATOR (name = value); default AND |