]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
adds warning for those using a string value with the operand "IN" for metadata pairs
authorCash Costello <cash.costello@gmail.com>
Sat, 13 Jul 2013 12:39:58 +0000 (08:39 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 13 Jul 2013 12:39:58 +0000 (08:39 -0400)
engine/lib/metadata.php

index 046b85124a8e9bd6af32095b54cf4f879a74abc2..d2f8d4cd45e77e81cd1864c9e3bc303da79bdcf8 100644 (file)
@@ -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