]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Queries with empty selections hadn't worked anymore
authorMichael <heluecht@pirati.ca>
Sun, 29 Mar 2020 12:29:57 +0000 (12:29 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 29 Mar 2020 12:29:57 +0000 (12:29 +0000)
src/Model/Item.php

index 67fd2a357a0a57ce2e6a245f5cb885cfd31c4b8f..7ac1ab300aee870c11078a481071f43b3655aaab 100644 (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';