Code Duplication    Length = 2-2 lines in 2 locations

Sources/Search.php 1 location

@@ 104-105 (lines=2) @@
101
		$context['search_params']['userspec'] = $smcFunc['htmlspecialchars']($context['search_params']['userspec']);
102
	if (!empty($context['search_params']['searchtype']))
103
		$context['search_params']['searchtype'] = 2;
104
	if (!empty($context['search_params']['minage']))
105
		$context['search_params']['minage'] = (int) $context['search_params']['minage'];
106
	if (!empty($context['search_params']['maxage']))
107
		$context['search_params']['maxage'] = (int) $context['search_params']['maxage'];
108

Sources/PersonalMessage.php 1 location

@@ 1143-1144 (lines=2) @@
1140
	if (!empty($context['search_params']['searchtype']))
1141
		$context['search_params']['searchtype'] = 2;
1142
1143
	if (!empty($context['search_params']['minage']))
1144
		$context['search_params']['minage'] = (int) $context['search_params']['minage'];
1145
1146
	if (!empty($context['search_params']['maxage']))
1147
		$context['search_params']['maxage'] = (int) $context['search_params']['maxage'];