Code Duplication    Length = 4-4 lines in 2 locations

infolog/inc/class.infolog_ui.inc.php 1 location

@@ 1764-1767 (lines=4) @@
1761
				{
1762
					$operation = $info_id ?  'edit' : 'add';
1763
1764
					if (is_array($content['link_to']['to_id']) && count($content['link_to']['to_id']))
1765
					{
1766
						$content['info_link_id'] = 0;	// as field has to be int
1767
					}
1768
					if (is_array($content['info_contact']) && $content['info_contact']['id'])
1769
					{
1770
						$content['info_contact'] = $content['info_contact']['app'] . ':' . $content['info_contact']['id'];

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

@@ 955-958 (lines=4) @@
952
				$msg = $message . ($msg ? ', ' . $msg : '');
953
				Framework::refresh_opener($msg, 'calendar', $event['id'], $client_updated ? ($event['recur_type'] ? 'edit' : $update_type) : 'delete');
954
				// writing links for new entry, existing ones are handled by the widget itself
955
				if (!$content['id'] && is_array($content['link_to']['to_id']))
956
				{
957
					Link::link('calendar',$event['id'],$content['link_to']['to_id']);
958
				}
959
			}
960
			else
961
			{