Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 79-80 (lines=2) @@
76
	$smcFunc['db_free_result']($result);
77
78
	// Set is_last, so the themes know when to stop placing separators.
79
	foreach ($bday as $mday => $array)
80
		$bday[$mday][count($array) - 1]['is_last'] = true;
81
82
	return $bday;
83
}
@@ 235-236 (lines=2) @@
232
	// If we're doing normal contextual data, go through and make things clear to the templates ;).
233
	if ($use_permissions)
234
	{
235
		foreach ($events as $mday => $array)
236
			$events[$mday][count($array) - 1]['is_last'] = true;
237
	}
238
239
	return $events;