@@ 491-497 (lines=7) @@ | ||
488 | $fq['container'] = 'container_guid:' . $params['container_guid']; |
|
489 | } |
|
490 | ||
491 | if (isset($params['container_guids']) && $params['container_guids'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
492 | if (is_array($params['container_guids'])) { |
|
493 | $fq['container'] = 'container_guid:(' . implode(' OR ', $params['container_guids']) . ')'; |
|
494 | } else { |
|
495 | $fq['container'] = 'container_guid:' . $params['container_guid']; |
|
496 | } |
|
497 | } |
|
498 | ||
499 | //owner |
|
500 | if (isset($params['owner_guid']) && $params['owner_guid'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
@@ 504-510 (lines=7) @@ | ||
501 | $fq['owner'] = 'owner_guid:' . $params['owner_guid']; |
|
502 | } |
|
503 | ||
504 | if (isset($params['owner_guids']) && $params['owner_guids'] !== ELGG_ENTITIES_ANY_VALUE) { |
|
505 | if (is_array($params['owner_guids'])) { |
|
506 | $fq['owner'] = 'owner_guid:(' . implode(' OR ', $params['owner_guids']) . ')'; |
|
507 | } else { |
|
508 | $fq['owner'] = 'owner_guid:' . $params['owner_guid']; |
|
509 | } |
|
510 | } |
|
511 | ||
512 | $access_query = elgg_solr_get_access_query(); |
|
513 | if ($access_query) { |