Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4323-4327 (lines=5) @@
4320
	}
4321
4322
	// Show how many errors there are
4323
	if (!empty($context['num_errors']) && allowedTo('admin_forum'))
4324
	{
4325
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4326
		$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4327
	}
4328
4329
	// Show number of reported members
4330
	if (!empty($context['open_member_reports']) && allowedTo('moderate_forum'))
@@ 4336-4340 (lines=5) @@
4333
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4334
	}
4335
4336
	if (!empty($context['unapproved_members']))
4337
	{
4338
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4339
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4340
	}
4341
4342
	// Do we have any open reports?
4343
	if ($total_mod_reports > 0)