Code Duplication    Length = 6-6 lines in 3 locations

archive-geojson.php 1 location

@@ 86-91 (lines=6) @@
83
				$j++;
84
				date_default_timezone_set('UTC');
85
86
				if (isset($spotter_item['image_thumbnail']) && $spotter_item['image_thumbnail'] != "")
87
				{
88
					$image = $spotter_item['image_thumbnail'];
89
				} else {
90
					$image = "images/placeholder_thumb.png";
91
				}
92
93
				//waypoint plotting
94
                /*

live-czml.php 1 location

@@ 144-149 (lines=6) @@
141
	{
142
		$j++;
143
		date_default_timezone_set('UTC');
144
		if (isset($spotter_item['image_thumbnail']) && $spotter_item['image_thumbnail'] != "")
145
		{
146
			$image = $spotter_item['image_thumbnail'];
147
		} else {
148
			$image = "images/placeholder_thumb.png";
149
		}
150
151
152
		if ($prev_flightaware_id != $spotter_item['flightaware_id']) {

live-geojson.php 1 location

@@ 109-114 (lines=6) @@
106
				$j++;
107
				date_default_timezone_set('UTC');
108
109
				if (isset($spotter_item['image_thumbnail']) && $spotter_item['image_thumbnail'] != "")
110
				{
111
					$image = $spotter_item['image_thumbnail'];
112
				} else {
113
					$image = "images/placeholder_thumb.png";
114
				}
115
116
/*
117
				if ($prev_flightaware_id != $spotter_item['flightaware_id']) {