@@ 568-580 (lines=13) @@ | ||
565 | $task_id = $row->id; |
|
566 | ||
567 | //Get groups |
|
568 | if($this->groups != FALSE) |
|
569 | { |
|
570 | if($this->group_perms != FALSE) |
|
571 | { |
|
572 | foreach($this->groups as $group) |
|
573 | { |
|
574 | $this->db->set('group_id', $group) |
|
575 | ->set('task_id', $task_id) |
|
576 | ->set('permissions', $this->group_perms) |
|
577 | ->insert('group_task_link'); |
|
578 | } |
|
579 | } |
|
580 | } |
|
581 | ||
582 | //Get friends |
|
583 | if($this->friends != FALSE) |
|
@@ 691-703 (lines=13) @@ | ||
688 | } |
|
689 | ||
690 | //Get groups |
|
691 | if($this->share_type == 'group') |
|
692 | { |
|
693 | if($this->group_perms !== FALSE) |
|
694 | { |
|
695 | foreach($this->groups as $group) |
|
696 | { |
|
697 | $this->db->set('group_id', $group) |
|
698 | ->set('task_id', $task_id) |
|
699 | ->set('permissions', $this->group_perms) |
|
700 | ->insert('group_task_link'); |
|
701 | } |
|
702 | } |
|
703 | } |
|
704 | ||
705 | //Get friends |
|
706 | if($this->share_type == 'friend') |