Fix calculation of distance if wked from same-grid or other errors

This commit is contained in:
int2001
2024-08-07 05:30:16 +00:00
parent f544768d0b
commit 62c1923641

View File

@@ -140,7 +140,9 @@ class Qra {
} else if ($unit == "N") {
$dist *= 0.8684;
}
if ((is_nan($dist)) || !(is_numeric($dist))) { // Special-Case, catch same grid and/or Errors
$dist=0;
}
return round($dist, 1);
}