@@ 440-447 (lines=8) @@ | ||
437 | $fq = array(); |
|
438 | ||
439 | // type/types |
|
440 | if (isset($params['type']) && $params['type'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
441 | if ($params['type'] === ELGG_ENTITIES_NO_VALUE) { |
|
442 | //$fq['type'] = '-type:[* TO *]'; |
|
443 | $fq['type'] = 'type:""'; |
|
444 | } else { |
|
445 | $fq['type'] = 'type:' . $params['type']; |
|
446 | } |
|
447 | } |
|
448 | ||
449 | if ($params['types'] && $params['types'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
450 | if (is_array($params['types'])) { |
|
@@ 463-470 (lines=8) @@ | ||
460 | } |
|
461 | ||
462 | //subtype |
|
463 | if (isset($params['subtype']) && $params['subtype'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
464 | if ($params['subtype'] === ELGG_ENTITIES_NO_VALUE) { |
|
465 | //$fq['subtype'] = '-subtype:[* TO *]'; |
|
466 | $fq['subtype'] = 'subtype:""'; |
|
467 | } else { |
|
468 | $fq['subtype'] = 'subtype:' . $params['subtype']; |
|
469 | } |
|
470 | } |
|
471 | ||
472 | if (isset($params['subtypes']) && $params['subtypes'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
473 | if (is_array($params['subtypes'])) { |