Code Duplication    Length = 7-7 lines in 2 locations

application/models/task_model.php 2 locations

@@ 587-593 (lines=7) @@
584
		{
585
			if($this->friend_perms != FALSE)
586
			{
587
				foreach($this->friends as $friend)
588
				{
589
					$this->db->set('user_id', $friend)
590
						->set('task_id', $task_id)
591
						->set('permissions', $this->friend_perms)
592
						->insert('user_task_link');
593
				}
594
			}
595
		}
596
@@ 710-716 (lines=7) @@
707
		{
708
			if($this->friend_perms !== FALSE)
709
			{
710
				foreach($this->friends as $friend)
711
				{
712
					$this->db->set('user_id', $friend)
713
						->set('task_id', $task_id)
714
						->set('permissions', $this->friend_perms)
715
						->insert('user_task_link');
716
				}
717
718
				if ($this->db->affected_rows() < 1)
719
				{