@@ 558-570 (lines=13) @@ | ||
555 | $task_id = $row->id; |
|
556 | ||
557 | //Get groups |
|
558 | if($this->groups != FALSE) |
|
559 | { |
|
560 | if($this->group_perms != FALSE) |
|
561 | { |
|
562 | foreach($this->groups as $group) |
|
563 | { |
|
564 | $this->db->set('group_id', $group) |
|
565 | ->set('task_id', $task_id) |
|
566 | ->set('permissions', $this->group_perms) |
|
567 | ->insert('group_task_link'); |
|
568 | } |
|
569 | } |
|
570 | } |
|
571 | ||
572 | //Get friends |
|
573 | if($this->friends != FALSE) |
|
@@ 680-692 (lines=13) @@ | ||
677 | ||
678 | ||
679 | //Get groups |
|
680 | if($this->share_type == 'group') |
|
681 | { |
|
682 | if($this->group_perms !== FALSE) |
|
683 | { |
|
684 | foreach($this->groups as $group) |
|
685 | { |
|
686 | $this->db->set('group_id', $group) |
|
687 | ->set('task_id', $task_id) |
|
688 | ->set('permissions', $this->group_perms) |
|
689 | ->insert('group_task_link'); |
|
690 | } |
|
691 | } |
|
692 | } |
|
693 | ||
694 | //Get friends |
|
695 | if($this->share_type == 'friend') |