Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4156-4160 (lines=5) @@
4153
	}
4154
4155
	// Show how many errors there are
4156
	if (!empty($context['num_errors']) && allowedTo('admin_forum'))
4157
	{
4158
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4159
		$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4160
	}
4161
4162
	/**
4163
	 * @todo For some reason, $context['open_member_reports'] isn't getting set
@@ 4171-4175 (lines=5) @@
4168
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4169
	}
4170
4171
	if (!empty($context['unapproved_members']))
4172
	{
4173
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4174
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4175
	}
4176
4177
	// Do we have any open reports?
4178
	if ($total_mod_reports > 0)