Skip to content

Commit

Permalink
#41875 fix array access
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolf-ilias committed Aug 12, 2024
1 parent 693eb8b commit f039865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Services/Tree/classes/class.ilMaterializedPathTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public function getSubtreeInfo(int $a_endnode_id): array
*/
public function validateParentRelations(): array
{
$query = 'select child from ' . $this->getTree()->getTreeTable() . ' child where not exists ' .
$query = 'select ' . $this->getTree()->getTreePk() .', child from ' . $this->getTree()->getTreeTable() . ' child where not exists ' .
'( ' .
'select child from ' . $this->getTree()->getTreeTable() . ' parent where child.parent = parent.child and ' .
'(child.path BETWEEN parent.path AND CONCAT(parent.path,' . $this->db->quote('Z', 'text') . ') )' . ')' .
Expand Down
2 changes: 1 addition & 1 deletion Services/Tree/classes/class.ilNestedSetTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ public function getSubtreeInfo(int $a_endnode_id): array
*/
public function validateParentRelations(): array
{
$query = 'select child from ' . $this->getTree()->getTreeTable() . ' child where not exists ' .
$query = 'select ' . $this->getTree()->getTreePk() .', child from ' . $this->getTree()->getTreeTable() . ' child where not exists ' .
'( ' .
'select child from ' . $this->getTree()->getTreeTable() . ' parent where child.parent = parent.child and (parent.lft < child.lft) and (parent.rgt > child.rgt) ' .
')' .
Expand Down

0 comments on commit f039865

Please sign in to comment.