Commit e800d950 authored by Bas de Nooijer's avatar Bas de Nooijer Committed by GitHub

Merge pull request #455 from basdenooijer/array-handling

Add support for comma-separated values in conversion to array
parents af447bdd cb36040e
......@@ -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']);
......
......@@ -1108,7 +1108,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