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

@@ 1486-1493 (lines=8) @@
1483
				<hr>
1484
				<dl class="settings">';
1485
1486
		elseif ($field['type'] == 'callback')
1487
		{
1488
			if (isset($field['callback_func']) && function_exists('template_profile_' . $field['callback_func']))
1489
			{
1490
				$callback_func = 'template_profile_' . $field['callback_func'];
1491
				$callback_func();
1492
			}
1493
		}
1494
		else
1495
		{
1496
			echo '