Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4342-4346 (lines=5) @@
4339
	}
4340
4341
	// Show how many errors there are
4342
	if (!empty($context['num_errors']) && allowedTo('admin_forum'))
4343
	{
4344
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4345
		$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4346
	}
4347
4348
	/**
4349
	 * @todo For some reason, $context['open_member_reports'] isn't getting set
@@ 4357-4361 (lines=5) @@
4354
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4355
	}
4356
4357
	if (!empty($context['unapproved_members']))
4358
	{
4359
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4360
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4361
	}
4362
4363
	// Do we have any open reports?
4364
	if ($total_mod_reports > 0)