Code Duplication    Length = 7-7 lines in 2 locations

calendar/inc/class.calendar_sif.inc.php 1 location

@@ 735-741 (lines=7) @@
732
				{
733
					// truncate the status only exception from the series master
734
					$recur_exceptions = array();
735
					foreach ($event_info['master_event']['recur_exception'] as $recur_exception)
736
					{
737
						if ($recur_exception != $event['recurrence'])
738
						{
739
							$recur_exceptions[] = $recur_exception;
740
						}
741
					}
742
					$event_info['master_event']['recur_exception'] = $recur_exceptions;
743
744
					// save the series master with the adjusted exceptions

calendar/inc/class.calendar_ical.inc.php 1 location

@@ 1655-1661 (lines=7) @@
1652
					{
1653
						// truncate the status only exception from the series master
1654
						$recur_exceptions = array();
1655
						foreach ($event_info['master_event']['recur_exception'] as $recur_exception)
1656
						{
1657
							if ($recur_exception != $event['recurrence'])
1658
							{
1659
								$recur_exceptions[] = $recur_exception;
1660
							}
1661
						}
1662
						$event_info['master_event']['recur_exception'] = $recur_exceptions;
1663
1664
						// save the series master with the adjusted exceptions