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 ...@@ -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']);
......
...@@ -1108,7 +1108,7 @@ class Query extends BaseQuery ...@@ -1108,7 +1108,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