Code Duplication    Length = 8-8 lines in 2 locations

live-czml.php 1 location

@@ 102-109 (lines=8) @@
99
*/
100
$spotter_array = $SpotterLive->getMinLastLiveSpotterData($filter);
101
102
if (!empty($spotter_array)) {
103
	if (isset($_GET['archive'])) {
104
		$flightcnt = $SpotterArchive->getLiveSpotterCount($begindate,$enddate,$filter);
105
	} else {
106
		$flightcnt = $SpotterLive->getLiveSpotterCount($filter);
107
	}
108
	if ($flightcnt == '') $flightcnt = 0;
109
} else $flightcnt = 0;
110
111
$sqltime = round(microtime(true)-$begintime,2);
112

live-geojson.php 1 location

@@ 80-87 (lines=8) @@
77
	$spotter_array = $SpotterLive->getLiveSpotterData('','',$filter);
78
}
79
80
if (!empty($spotter_array)) {
81
	if (isset($_GET['archive'])) {
82
		$flightcnt = $SpotterArchive->getLiveSpotterCount($begindate,$enddate,$filter);
83
	} else {
84
		$flightcnt = $SpotterLive->getLiveSpotterCount($filter);
85
	}
86
	if ($flightcnt == '') $flightcnt = 0;
87
} else $flightcnt = 0;
88
89
$sqltime = round(microtime(true)-$begintime,2);
90