Fix: Queries with empty selections hadn't worked anymore

This commit is contained in:
Michael 2020-03-29 12:29:57 +00:00
parent 979199c442
commit e17e385c41

View file

@ -846,7 +846,9 @@ class Item
*/
private static function constructSelectFields(array $fields, array $selected)
{
$selected = array_merge($selected, ['internal-iid', 'internal-psid', 'internal-iaid', 'internal-network']);
if (!empty($selected)) {
$selected = array_merge($selected, ['internal-iid', 'internal-psid', 'internal-iaid', 'internal-network']);
}
if (in_array('verb', $selected)) {
$selected[] = 'internal-activity';