Code Duplication    Length = 5-5 lines in 2 locations

modules/announcements.php 1 location

@@ 185-189 (lines=5) @@
182
				// Get disallowed forums
183
				$disallow_access = $this->modules_helper->get_disallowed_forums($permissions);
184
185
				if ($this->config['board3_announcements_forum_exclude_' . $module_id] == true)
186
				{
187
					$disallow_access = array_merge($disallow_access, $forum_from);
188
					$forum_from = array();
189
				}
190
191
				$global_f = 0;
192

modules/news.php 1 location

@@ 182-186 (lines=5) @@
179
				// Get disallowed forums
180
				$disallow_access = $this->modules_helper->get_disallowed_forums($permissions);
181
182
				if ($this->config['board3_news_exclude_' . $module_id] == true)
183
				{
184
					$disallow_access = array_merge($disallow_access, $forum_from);
185
					$forum_from = array();
186
				}
187
188
				if (sizeof($forum_from))
189
				{