--- a/common-template.inc.php +++ b/common-template.inc.php @@ -65,7 +65,12 @@ } if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(success, error); +var options = { + enableHighAccuracy: false, + timeout: 60000, + maximumAge: 10000 +} + navigator.geolocation.getCurrentPosition(success, error, options); } </script> "; @@ -122,7 +127,7 @@ or enter an address/co-ordinates in the box below.</div>'; } echo '<div data-role="collapsible" data-collapsed="' . !$geoerror . '"> - <h3>Change Time/Place (' . $_SESSION['time'] . ' '.ucwords(service_period()).')...</h3> + <h3>Change Time/Place (' . (isset($_SESSION['time']) ? $_SESSION['time'] : "Current Time,") . ' '.ucwords(service_period()).')...</h3> <form action="" method="post"> <div class="ui-body"> <div data-role="fieldcontain">