Code Duplication    Length = 5-5 lines in 2 locations

Sources/Memberlist.php 1 location

@@ 631-635 (lines=5) @@
628
			foreach ($context['custom_profile_fields']['columns'] as $key => $column)
629
			{
630
				// Don't show anything if there isn't anything to show.
631
				if (!isset($context['members'][$member]['options'][$key]))
632
				{
633
					$context['members'][$member]['options'][$key] = '';
634
					continue;
635
				}
636
637
				if ($column['bbc'] && !empty($context['members'][$member]['options'][$key]))
638
					$context['members'][$member]['options'][$key] = strip_tags(parse_bbc($context['members'][$member]['options'][$key]));

Sources/Profile-Modify.php 1 location

@@ 1478-1482 (lines=5) @@
1475
			foreach ($context['custom_pf'] as $key => $column)
1476
			{
1477
				// Don't show anything if there isn't anything to show.
1478
				if (!isset($context['buddies'][$buddy]['options'][$key]))
1479
				{
1480
					$context['buddies'][$buddy]['options'][$key] = '';
1481
					continue;
1482
				}
1483
1484
				if ($column['bbc'] && !empty($context['buddies'][$buddy]['options'][$key]))
1485
					$context['buddies'][$buddy]['options'][$key] = strip_tags(parse_bbc($context['buddies'][$buddy]['options'][$key]));