Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4256-4260 (lines=5) @@
4253
	}
4254
4255
	// Show how many errors there are
4256
	if (!empty($context['num_errors']) && allowedTo('admin_forum'))
4257
	{
4258
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4259
		$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4260
	}
4261
4262
	/**
4263
	 * @todo For some reason, $context['open_member_reports'] isn't getting set
@@ 4271-4275 (lines=5) @@
4268
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4269
	}
4270
4271
	if (!empty($context['unapproved_members']))
4272
	{
4273
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4274
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4275
	}
4276
4277
	// Do we have any open reports?
4278
	if ($total_mod_reports > 0)