Skip to content

Commit

Permalink
Merge branch 'hotfix-0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
blockmurder committed Oct 15, 2019
2 parents c7996d9 + 244a64b commit 1b218ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "blockmurder/winlinkapi",
"description": "Adds a cron job which gets the latest poition reports of your callsing from WinLink.org and adds them to your database",
"type": "bolt-extension",
"version": "0.1.2",
"version": "0.1.3",
"keywords": [
"winlink",
"positions",
Expand Down
8 changes: 7 additions & 1 deletion src/WinLinkAPIExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,13 @@ private function ddToDms($dec)
// Converts decimal format to DMS ( Degrees / minutes / seconds )
$vars = explode(".",$dec);
$deg = $vars[0];
$tempma = "0.".$vars[1];

if(count($vars)>1)
{
$tempma = "0.".$vars[1];
}else{
$tempma = "0.0";
}

$tempma = $tempma * 3600;
$min = floor($tempma / 60);
Expand Down

0 comments on commit 1b218ba

Please sign in to comment.