Block refiling of PIREPs (#1167)
* Block refiling of PIREPs * Style fixes * Package updates
This commit is contained in:
@@ -48,6 +48,10 @@ class AviationWeather extends Metar
|
||||
$res = $this->httpClient->get($url, []);
|
||||
$xml = simplexml_load_string($res);
|
||||
|
||||
if ($xml->errors && count($xml->errors->children()) > 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$attrs = $xml->data->attributes();
|
||||
if (!isset($attrs['num_results'])) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user