Code Duplication    Length = 2-2 lines in 2 locations

Sources/ManageSearchEngines.php 1 location

@@ 119-120 (lines=2) @@
116
			'moderator_group' => 3,
117
		)
118
	);
119
	while ($row = $smcFunc['db_fetch_assoc']($request))
120
		$config_vars['spider_group'][2][$row['id_group']] = $row['group_name'];
121
	$smcFunc['db_free_result']($request);
122
123
	// Make sure it's valid - note that regular members are given id_group = 1 which is reversed in Load.php - no admins here!

Sources/Post.php 1 location

@@ 2321-2322 (lines=2) @@
2318
			'group_list' => $groups,
2319
		)
2320
	);
2321
	while ($row = $smcFunc['db_fetch_assoc']($request))
2322
		$context['groups'][$row['id_group']]['name'] = $row['group_name'];
2323
	$smcFunc['db_free_result']($request);
2324
2325
	// Get the subject of the topic we're about to announce.