Code Duplication    Length = 5-5 lines in 2 locations

Sources/Subs.php 2 locations

@@ 4384-4388 (lines=5) @@
4381
			$smcFunc['db_free_result']($query);
4382
		}
4383
4384
		if (!empty($context['num_errors']))
4385
		{
4386
			$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4387
			$context['menu_buttons']['admin']['sub_buttons']['errorlog']['title'] .= ' <span class="amt">' . $context['num_errors'] . '</span>';
4388
		}
4389
	}
4390
4391
	// Show number of reported members
@@ 4398-4402 (lines=5) @@
4395
		$context['menu_buttons']['moderate']['sub_buttons']['reported_members']['title'] .= ' <span class="amt">' . $context['open_member_reports'] . '</span>';
4396
	}
4397
4398
	if (!empty($context['unapproved_members']))
4399
	{
4400
		$context['menu_buttons']['admin']['sub_buttons']['memberapprove']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4401
		$context['menu_buttons']['admin']['title'] .= ' <span class="amt">' . $context['unapproved_members'] . '</span>';
4402
	}
4403
4404
	// Do we have any open reports?
4405
	if ($total_mod_reports > 0)