Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4263-4267 (lines=5) @@
4260
	}
4261
4262
	// Show how many errors there are
4263
	if (!empty($context['num_errors']) && allowedTo('admin_forum'))
4264
	{
4265
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4266
		$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4267
	}
4268
4269
	/**
4270
	 * @todo For some reason, $context['open_member_reports'] isn't getting set
@@ 4278-4282 (lines=5) @@
4275
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4276
	}
4277
4278
	if (!empty($context['unapproved_members']))
4279
	{
4280
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4281
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4282
	}
4283
4284
	// Do we have any open reports?
4285
	if ($total_mod_reports > 0)