]> git.mxchange.org Git - friendica.git/commitdiff
Changed structure
authorMichael <heluecht@pirati.ca>
Tue, 30 Jun 2020 17:51:03 +0000 (17:51 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 30 Jun 2020 17:51:03 +0000 (17:51 +0000)
src/Model/Item.php

index 636a98ae4f46fe946a1efd65552ecd38ca4c91e3..4228d1a5afd8dd16d6d68b014003f99fab322c0b 100644 (file)
@@ -789,10 +789,10 @@ class Item
 
                if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-item-author`.") !== false)) {
                        $joins .= " STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent`";
-               }
 
-               if (strpos($sql_commands, "`parent-item-author`.") !== false) {
-                       $joins .= " STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`";
+                       if (strpos($sql_commands, "`parent-item-author`.") !== false) {
+                               $joins .= " STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`";
+                       }
                }
 
                return $joins;