Code Duplication    Length = 7-7 lines in 2 locations

application/models/task_model.php 2 locations

@@ 577-583 (lines=7) @@
574
		{
575
			if($this->friend_perms != FALSE)
576
			{
577
				foreach($this->friends as $friend)
578
				{
579
					$this->db->set('user_id', $friend)
580
						->set('task_id', $task_id)
581
						->set('permissions', $this->friend_perms)
582
						->insert('user_task_link');
583
				}
584
			}
585
		}
586
@@ 699-705 (lines=7) @@
696
		{
697
			if($this->friend_perms !== FALSE)
698
			{
699
				foreach($this->friends as $friend)
700
				{
701
					$this->db->set('user_id', $friend)
702
						->set('task_id', $task_id)
703
						->set('permissions', $this->friend_perms)
704
						->insert('user_task_link');
705
				}
706
707
				if ($this->db->affected_rows() < 1)
708
						{return false;}