Changed structure
This commit is contained in:
parent
8f1635d8fd
commit
6aadb6b923
1 changed files with 3 additions and 3 deletions
|
@ -789,10 +789,10 @@ class Item
|
||||||
|
|
||||||
if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-item-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`";
|
$joins .= " STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent`";
|
||||||
}
|
|
||||||
|
|
||||||
if (strpos($sql_commands, "`parent-item-author`.") !== false) {
|
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`";
|
$joins .= " STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $joins;
|
return $joins;
|
||||||
|
|
Loading…
Reference in a new issue