Fixed syntax error in endpoint.php
This commit is contained in:
parent
e4bad9787f
commit
97b04eff7b
|
@ -3,7 +3,7 @@
|
||||||
require_once("config.php");
|
require_once("config.php");
|
||||||
|
|
||||||
if (!$endpoint) {
|
if (!$endpoint) {
|
||||||
die("Endpoint not enabled in config. You should do something about that.")
|
die("Endpoint not enabled in config. You should do something about that.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["lat"]) && preg_match("/^-?\d+\.\d+$/", $_GET["lat"]) && isset($_GET["lon"]) && preg_match("/^-?\d+\.\d+$/", $_GET["lon"]) && isset($_GET["device"]) ) {
|
if (isset($_GET["lat"]) && preg_match("/^-?\d+\.\d+$/", $_GET["lat"]) && isset($_GET["lon"]) && preg_match("/^-?\d+\.\d+$/", $_GET["lon"]) && isset($_GET["device"]) ) {
|
||||||
|
|
Loading…
Reference in a new issue