@@ 756-758 (lines=3) @@ | ||
753 | $params['parent_id'] = 1; |
|
754 | } |
|
755 | ||
756 | if (!is_array($params['parent_id'])) { |
|
757 | $params['parent_id'] = array($params['parent_id']); |
|
758 | } |
|
759 | ||
760 | $skill_rel_skill = new SkillRelSkill(); |
|
761 | $skill_rel_gradebook = new SkillRelGradebook(); |
|
@@ 862-864 (lines=3) @@ | ||
859 | if ($skill_id) { |
|
860 | //Saving skill_rel_skill (parent_id, relation_type) |
|
861 | ||
862 | if (!is_array($params['parent_id'])) { |
|
863 | $params['parent_id'] = array($params['parent_id']); |
|
864 | } |
|
865 | ||
866 | foreach ($params['parent_id'] as $parent_id) { |
|
867 | $relation_exists = $skill_rel_skill->relation_exists($skill_id, $parent_id); |