summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndreas Jakum <aj-gh@users.noreply.github.com>2020-12-26 23:08:38 +0100
committerAndreas Jakum <aj-gh@users.noreply.github.com>2020-12-26 23:08:38 +0100
commitfd9ee80f9babc4bc795e99e08f88140888b44455 (patch)
tree58826c6382a12ba3ce9c67f6cdbd8bbd546633f3 /index.php
parent75242961eedea7bf397c3736305ff1b4a01efd02 (diff)
Add missing parenthesis.HEADmaster
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 72213b0..ecfdd0d 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,8 @@
<?php
session_start();
-if(isset($_REQUEST['lat']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lat']) $lat = $_REQUEST['lat'];
-if(isset($_REQUEST['lng']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lng']) $lng = $_REQUEST['lng'];
+if(isset($_REQUEST['lat']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lat'])) $lat = $_REQUEST['lat'];
+if(isset($_REQUEST['lng']) && preg_match('/^\-?[0-9\.]+$/', $_REQUEST['lng'])) $lng = $_REQUEST['lng'];
if(isset($_REQUEST['res']) && preg_match('/^[0-9]+$/', $_REQUEST['res'])) $res = $_REQUEST['res'];
//default values