Code Duplication    Length = 4-4 lines in 2 locations

migrations/v210_beta1.php 1 location

@@ 206-209 (lines=4) @@
203
			FROM ' . $this->table_prefix . 'groups
204
			WHERE ' . $this->db->sql_in_set('group_name', $in_ary);
205
		$result = $this->db->sql_query($sql);
206
		while ($row = $this->db->sql_fetchrow($result))
207
		{
208
			$groups_ary[$row['group_name']] = $row['group_id'];
209
		}
210
		$this->db->sql_freeresult($result);
211
212
		// set portal config

modules/main_menu.php 1 location

@@ 185-188 (lines=4) @@
182
183
		$sql = 'SELECT group_id, group_name FROM ' . GROUPS_TABLE . ' WHERE ' . $this->db->sql_in_set('group_name', $in_ary);
184
		$result = $this->db->sql_query($sql);
185
		while ($row = $this->db->sql_fetchrow($result))
186
		{
187
			$groups_ary[$row['group_name']] = $row['group_id'];
188
		}
189
190
		$links = array();
191