]> git.mxchange.org Git - friendica.git/commitdiff
Fix database error ""Unknown column 'parent-item.author-id'"
authorMichael <heluecht@pirati.ca>
Tue, 30 Jun 2020 05:49:22 +0000 (05:49 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 30 Jun 2020 05:49:22 +0000 (05:49 +0000)
src/Model/Item.php

index 887072eb85c016a5bca321cec026452e631594ec..636a98ae4f46fe946a1efd65552ecd38ca4c91e3 100644 (file)
@@ -787,7 +787,7 @@ class Item
                        $joins .= " LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`";
                }
 
-               if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-author`.") !== false)) {
+               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`";
                }