diff --git a/components/ILIAS/Skill/Node/class.SkillDeletionManager.php b/components/ILIAS/Skill/Node/class.SkillDeletionManager.php index d41a05493f8d..96037cd2a68b 100755 --- a/components/ILIAS/Skill/Node/class.SkillDeletionManager.php +++ b/components/ILIAS/Skill/Node/class.SkillDeletionManager.php @@ -95,7 +95,7 @@ public function deleteTree(int $node_id): void public function deleteNode(int $node_id, \ilSkillTree $tree = null): void { - if ($node_id != \ilTree::POS_FIRST_NODE) { + if ($node_id != \ilTree::POS_FIRST_NODE || $node_id !== 0) { if (!$tree) { $tree = $this->tree_repo->getTreeForNodeId($node_id); }