Code Duplication    Length = 5-5 lines in 2 locations

modules/attachments.php 1 location

@@ 252-256 (lines=5) @@
249
			$forum_list =  array_unique(array_keys($this->auth->acl_getf('f_read', true)));
250
		}
251
252
		if (sizeof($forum_list))
253
		{
254
			$attach_forums = true;
255
			$where = 'AND ' . $this->db->sql_in_set('t.forum_id', $forum_list);
256
		}
257
258
		if (sizeof($filetypes))
259
		{

modules/poll.php 1 location

@@ 348-352 (lines=5) @@
345
346
		$where = '';
347
348
		if (sizeof($forum_list))
349
		{
350
			$poll_forums = true;
351
			$where = 'AND ' . $this->db->sql_in_set('t.forum_id', $forum_list);
352
		}
353
354
		if ($this->config['board3_poll_hide_' . $module_id])
355
		{