From: Michael Date: Sun, 29 Mar 2020 12:29:57 +0000 (+0000) Subject: Fix: Queries with empty selections hadn't worked anymore X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e17e385c4137116f7dd2c1e6d1676679a482e0a9;p=friendica.git Fix: Queries with empty selections hadn't worked anymore --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 67fd2a357a..7ac1ab300a 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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';