| @@ 357-364 (lines=8) @@ | ||
| 354 | continue; |
|
| 355 | } |
|
| 356 | ||
| 357 | if (!is_array($filter)) { |
|
| 358 | $filter_type = Datasource::determineFilterType($filter); |
|
| 359 | $value = preg_split('/'.($filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),').'\s*/', $filter, -1, PREG_SPLIT_NO_EMPTY); |
|
| 360 | $value = array_map('trim', $value); |
|
| 361 | $value = array_map(array('Datasource', 'removeEscapedCommas'), $value); |
|
| 362 | } else { |
|
| 363 | $value = $filter; |
|
| 364 | } |
|
| 365 | ||
| 366 | if (!in_array($field_id, self::$_system_parameters) && $field_id !== 'id' && !(self::$_fieldPool[$field_id] instanceof Field)) { |
|
| 367 | throw new Exception( |
|
| @@ 432-437 (lines=6) @@ | ||
| 429 | continue; |
|
| 430 | } |
|
| 431 | ||
| 432 | if (!is_array($value)) { |
|
| 433 | $filter_type = Datasource::determineFilterType($value); |
|
| 434 | $value = preg_split('/'.($filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),').'\s*/', $value, -1, PREG_SPLIT_NO_EMPTY); |
|
| 435 | $value = array_map('trim', $value); |
|
| 436 | $value = array_map(array('Datasource', 'removeEscapedCommas'), $value); |
|
| 437 | } |
|
| 438 | ||
| 439 | // Handle date meta data #2003 |
|
| 440 | $handle = Symphony::Database()->cleanValue($handle); |
|