Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4237-4241 (lines=5) @@
4234
	}
4235
4236
	// Show how many errors there are
4237
	if (!empty($context['num_errors']) && allowedTo('admin_forum'))
4238
	{
4239
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4240
		$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4241
	}
4242
4243
	/**
4244
	 * @todo For some reason, $context['open_member_reports'] isn't getting set
@@ 4252-4256 (lines=5) @@
4249
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4250
	}
4251
4252
	if (!empty($context['unapproved_members']))
4253
	{
4254
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4255
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4256
	}
4257
4258
	// Do we have any open reports?
4259
	if ($total_mod_reports > 0)