Code Duplication    Length = 8-8 lines in 2 locations

SSI.php 2 locations

@@ 1800-1807 (lines=8) @@
1797
	if ($output_method != 'echo')
1798
		return $return['calendar_events'];
1799
1800
	foreach ($return['calendar_events'] as $event)
1801
	{
1802
		if ($event['can_edit'])
1803
			echo '
1804
	<a href="' . $event['modify_href'] . '" style="color: #ff0000;">*</a> ';
1805
		echo '
1806
	' . $event['link'] . (!$event['is_last'] ? ', ' : '');
1807
	}
1808
}
1809
1810
/**
@@ 1853-1860 (lines=8) @@
1850
	{
1851
		echo '
1852
			<span class="event">' . $txt['events_upcoming'] . '</span> ';
1853
		foreach ($return['calendar_events'] as $event)
1854
		{
1855
			if ($event['can_edit'])
1856
				echo '
1857
			<a href="' . $event['modify_href'] . '" style="color: #ff0000;">*</a> ';
1858
			echo '
1859
			' . $event['link'] . (!$event['is_last'] ? ', ' : '');
1860
		}
1861
	}
1862
}
1863