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
}
@@ 233-234 (lines=2) @@
230
	// If we're doing normal contextual data, go through and make things clear to the templates ;).
231
	if ($use_permissions)
232
	{
233
		foreach ($events as $mday => $array)
234
			$events[$mday][count($array) - 1]['is_last'] = true;
235
	}
236
237
	return $events;