@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $limit_start = 0; |
| 16 | 16 | $limit_end = 25; |
| 17 | 17 | $absolute_difference = 25; |
| 18 | - } else { |
|
| 18 | + } else { |
|
| 19 | 19 | $limit_explode = explode(",", $_GET['limit']); |
| 20 | 20 | $limit_start = $limit_explode[0]; |
| 21 | 21 | $limit_end = $limit_explode[1]; |
@@ -47,7 +47,9 @@ discard block |
||
| 47 | 47 | $METAR = new METAR(); |
| 48 | 48 | $metar_info = $METAR->getMETAR($airport_icao); |
| 49 | 49 | //print_r($metar_info); |
| 50 | - if (isset($metar_info[0]['metar'])) $metar_parse = $METAR->parse($metar_info[0]['metar']); |
|
| 50 | + if (isset($metar_info[0]['metar'])) { |
|
| 51 | + $metar_parse = $METAR->parse($metar_info[0]['metar']); |
|
| 52 | + } |
|
| 51 | 53 | //print_r($metar_parse); |
| 52 | 54 | } |
| 53 | 55 | |
@@ -61,7 +63,9 @@ discard block |
||
| 61 | 63 | print '<option></option>'; |
| 62 | 64 | $Stats = new Stats(); |
| 63 | 65 | $airport_names = $Stats->getAllAirportNames(); |
| 64 | - if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames(); |
|
| 66 | + if (empty($airport_names)) { |
|
| 67 | + $airport_names = $Spotter->getAllAirportNames(); |
|
| 68 | + } |
|
| 65 | 69 | ksort($airport_names); |
| 66 | 70 | foreach($airport_names as $airport_name) |
| 67 | 71 | { |
@@ -102,7 +106,9 @@ discard block |
||
| 102 | 106 | // Use spotter also |
| 103 | 107 | if (isset($globalTimezone)) { |
| 104 | 108 | date_default_timezone_set($globalTimezone); |
| 105 | - } else date_default_timezone_set('UTC'); |
|
| 109 | + } else { |
|
| 110 | + date_default_timezone_set('UTC'); |
|
| 111 | + } |
|
| 106 | 112 | if (count($all_data) > 0) { |
| 107 | 113 | print '<link href="'.$globalURL.'/css/c3.min.css" rel="stylesheet" type="text/css">'; |
| 108 | 114 | print '<script type="text/javascript" src="'.$globalURL.'/js/d3.min.js"></script>'; |