Closed TomasSjosten closed 9 years ago
Expects $filters param to be string currently. I added support for array, which I think was the original idea.
$filter = (is_array($filters)) ? $filters : preg_replace('/\s/', '', explode(',', $filters));
It seems like a good approach to support both. I added it to the repo where I do further development on CTextFilter. https://github.com/mosbth/ctextfilter/issues/4
Expects $filters param to be string currently. I added support for array, which I think was the original idea.
$filter = (is_array($filters)) ? $filters : preg_replace('/\s/', '', explode(',', $filters));