| @@ 185-190 (lines=6) @@ | ||
| 182 | continue; |
|
| 183 | } |
|
| 184 | ||
| 185 | if (!is_array($value)) { |
|
| 186 | $filter_type = Datasource::determineFilterType($value); |
|
| 187 | $value = preg_split('/' . ($filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),') . '\s*/', |
|
| 188 | $value, -1, PREG_SPLIT_NO_EMPTY); |
|
| 189 | $value = array_map('trim', $value); |
|
| 190 | $value = array_map(array('Datasource', 'removeEscapedCommas'), $value); |
|
| 191 | } |
|
| 192 | ||
| 193 | // Handle date meta data #2003 |
|
| @@ 308-315 (lines=8) @@ | ||
| 305 | continue; |
|
| 306 | } |
|
| 307 | ||
| 308 | if (!is_array($filter)) { |
|
| 309 | $filter_type = Datasource::determineFilterType($filter); |
|
| 310 | $value = preg_split('/' . ($filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),') . '\s*/', |
|
| 311 | $filter, -1, PREG_SPLIT_NO_EMPTY); |
|
| 312 | $value = array_map('trim', $value); |
|
| 313 | $value = array_map(array('Datasource', 'removeEscapedCommas'), $value); |
|
| 314 | } else { |
|
| 315 | $value = $filter; |
|
| 316 | } |
|
| 317 | ||
| 318 | if (!in_array($field_id, |
|