@@ -17,12 +17,13 @@ |
||
| 17 | 17 | |
| 18 | 18 | if (PHP_SAPI === 'cli') { |
| 19 | 19 | $idspot = $argv[1]; |
| 20 | -} |
|
| 21 | -else { |
|
| 20 | +} else { |
|
| 22 | 21 | $idspot = $_GET['idspot']; |
| 23 | 22 | } |
| 24 | 23 | |
| 25 | -if(empty($idspot)) return; |
|
| 24 | +if(empty($idspot)) { |
|
| 25 | + return; |
|
| 26 | +} |
|
| 26 | 27 | |
| 27 | 28 | $windguruAPI = new WindguruAPI(); |
| 28 | 29 | $windguruAPI->setSpot($idspot); |