Commit cb36040e authored by Bas de Nooijer's avatar Bas de Nooijer

Add support for comma-separated values in conversion to array

parent 48054b7c
......@@ -180,7 +180,7 @@ abstract class AbstractFacet extends Configurable
break;
case 'exclude':
if (!is_array($value)) {
$value = array($value);
$value = explode(',', $value);
}
$this->setExcludes($value);
unset($this->options['exclude']);
......
......@@ -1090,7 +1090,7 @@ class Query extends BaseQuery
break;
case 'tag':
if (!is_array($value)) {
$value = array($value);
$value = explode(',', $value);
}
$this->addTags($value);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment