Code Duplication    Length = 14-14 lines in 2 locations

Sources/ManageMembers.php 2 locations

@@ 182-195 (lines=14) @@
179
				'newbie_group' => 4,
180
			)
181
		);
182
		while ($row = $smcFunc['db_fetch_assoc']($request))
183
		{
184
			if ($row['min_posts'] == -1)
185
				$context['membergroups'][] = array(
186
					'id' => $row['id_group'],
187
					'name' => $row['group_name'],
188
					'can_be_additional' => true
189
				);
190
			else
191
				$context['postgroups'][] = array(
192
					'id' => $row['id_group'],
193
					'name' => $row['group_name']
194
				);
195
		}
196
		$smcFunc['db_free_result']($request);
197
198
		// Some data about the form fields and how they are linked to the database.
@@ 656-669 (lines=14) @@
653
			'newbie_group' => 4,
654
		)
655
	);
656
	while ($row = $smcFunc['db_fetch_assoc']($request))
657
	{
658
		if ($row['min_posts'] == -1)
659
			$context['membergroups'][] = array(
660
				'id' => $row['id_group'],
661
				'name' => $row['group_name'],
662
				'can_be_additional' => true
663
			);
664
		else
665
			$context['postgroups'][] = array(
666
				'id' => $row['id_group'],
667
				'name' => $row['group_name']
668
			);
669
	}
670
	$smcFunc['db_free_result']($request);
671
672
	$context['page_title'] = $txt['admin_members'];