Code Duplication    Length = 4-4 lines in 2 locations

qte.php 2 locations

@@ 399-402 (lines=4) @@
396
		$can_edit		= $this->auth->acl_get('m_qte_attr_edit', $forum_id) || $this->auth->acl_get('f_qte_attr_'.$attribute_id, $forum_id) && $this->user->data['is_registered'] && $this->user->data['user_id'] == $author_id;
397
		$can_remove		= $this->auth->acl_get('m_qte_attr_del', $forum_id);
398
399
		if (!$can_edit && $attribute_id != self::REMOVE || !$can_remove && $attribute_id == self::REMOVE)
400
		{
401
			return;
402
		}
403
404
		// Default values
405
		$fields = array('topic_attr_id' => 0, 'topic_attr_user'	=> 0, 'topic_attr_time'	=> 0);
@@ 474-477 (lines=4) @@
471
		$can_edit		= $this->auth->acl_get('m_qte_attr_edit', $forum_id);
472
		$can_remove		= $this->auth->acl_get('m_qte_attr_del', $forum_id);
473
474
		if (!$can_edit && $attribute_id != self::REMOVE || !$can_remove && $attribute_id == self::REMOVE)
475
		{
476
			return;
477
		}
478
479
		if (!sizeof($topic_ids))
480
		{