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 ...@@ -180,7 +180,7 @@ abstract class AbstractFacet extends Configurable
break; break;
case 'exclude': case 'exclude':
if (!is_array($value)) { if (!is_array($value)) {
$value = array($value); $value = explode(',', $value);
} }
$this->setExcludes($value); $this->setExcludes($value);
unset($this->options['exclude']); unset($this->options['exclude']);
......
...@@ -1090,7 +1090,7 @@ class Query extends BaseQuery ...@@ -1090,7 +1090,7 @@ class Query extends BaseQuery
break; break;
case 'tag': case 'tag':
if (!is_array($value)) { if (!is_array($value)) {
$value = array($value); $value = explode(',', $value);
} }
$this->addTags($value); $this->addTags($value);
break; 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