Code Duplication    Length = 5-8 lines in 2 locations

Themes/default/Register.template.php 1 location

@@ 186-190 (lines=5) @@
183
		{
184
			if ($field['type'] == 'callback')
185
			{
186
				if (isset($field['callback_func']) && function_exists('template_profile_' . $field['callback_func']))
187
				{
188
					$callback_func = 'template_profile_' . $field['callback_func'];
189
					$callback_func();
190
				}
191
			}
192
			else
193
			{

Themes/default/Profile.template.php 1 location

@@ 1494-1501 (lines=8) @@
1491
				<hr>
1492
				<dl class="settings">';
1493
1494
		elseif ($field['type'] == 'callback')
1495
		{
1496
			if (isset($field['callback_func']) && function_exists('template_profile_' . $field['callback_func']))
1497
			{
1498
				$callback_func = 'template_profile_' . $field['callback_func'];
1499
				$callback_func();
1500
			}
1501
		}
1502
		else
1503
		{
1504
			echo '