From: Cash Costello Date: Sat, 13 Jul 2013 12:39:58 +0000 (-0400) Subject: adds warning for those using a string value with the operand "IN" for metadata pairs X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2cab755b9df35f5e338151cf1e94cbce5f544e98;p=lorea%2Felgg.git adds warning for those using a string value with the operand "IN" for metadata pairs --- 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