mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
move intval() to the reg1testlib to make maxdistance function more generic
This commit is contained in:
@@ -134,7 +134,7 @@ class Qra {
|
||||
* @param string $unit Unit of measurement
|
||||
*
|
||||
* @return object $maxdistanceqso Object of the QSO with the maximum distance
|
||||
* @return integer $maxdistance Maximum distance
|
||||
* @return float $maxdistance Maximum distance
|
||||
*/
|
||||
|
||||
function getMaxDistanceQSO($mylocator, $qsos, $unit = "M") {
|
||||
@@ -162,7 +162,7 @@ class Qra {
|
||||
|
||||
$result = [];
|
||||
$result['qso'] = $maxdistanceqso;
|
||||
$result['distance'] = intval($maxdistance);
|
||||
$result['distance'] = $maxdistance;
|
||||
|
||||
//return findings
|
||||
return $result;
|
||||
|
||||
@@ -47,7 +47,7 @@ class Reg1testformat {
|
||||
|
||||
//set QSO info for QSO with max distance only if we can determine it
|
||||
if($maxdistanceqso['qso'] != null){
|
||||
$edi_header .= "CODXC=" . strtoupper($maxdistanceqso['qso']->COL_CALL) . ";" . substr(strtoupper($maxdistanceqso['qso']->COL_GRIDSQUARE), 0, 6) . ";" . $maxdistanceqso['distance'] . "\r\n"; //Arguments describe the claimed ODX contact call, WWL and distance.
|
||||
$edi_header .= "CODXC=" . strtoupper($maxdistanceqso['qso']->COL_CALL) . ";" . substr(strtoupper($maxdistanceqso['qso']->COL_GRIDSQUARE), 0, 6) . ";" . intval($maxdistanceqso['distance']) . "\r\n"; //Arguments describe the claimed ODX contact call, WWL and distance.
|
||||
}else{
|
||||
$edi_header .= "CODXC=" . "\r\n"; //Arguments describe the claimed ODX contact call, WWL and distance. Leave empty.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user