diff --git a/includes/handlers.inc b/includes/handlers.inc index 6c1e887..42d9e96 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -1604,13 +1604,15 @@ class views_join { if (is_array($info['value'])) { // With an array of values, we need multiple placeholders and the // 'IN' operator is implicit. + $local_placeholders = array(); foreach ($info['value'] as $value) { $placeholder_i = ':views_join_condition_' . $select_query->nextPlaceholder(); + $local_placeholders[] = $placeholder_i; $arguments[$placeholder_i] = $value; } $operator = !empty($info['operator']) ? $info['operator'] : 'IN'; - $placeholder = '( ' . implode(', ', array_keys($arguments)) . ' )'; + $placeholder = '( ' . implode(', ', $local_placeholders) . ' )'; } else { // With a single value, the '=' operator is implicit.