|
@@ -49,8 +49,8 @@ class CaptivePortalController extends Controller
|
|
|
|
|
|
if($onu->getClientId() == $sale->getClientId() && $onu->getProfile() == $sale->getProfile()) {
|
|
if($onu->getClientId() == $sale->getClientId() && $onu->getProfile() == $sale->getProfile()) {
|
|
$result = true;
|
|
$result = true;
|
|
- //$em->remove($sale);
|
|
|
|
- //$em->flush();
|
|
|
|
|
|
+ $em->remove($sale);
|
|
|
|
+ $em->flush();
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -72,9 +72,9 @@ class CaptivePortalController extends Controller
|
|
if(!is_null($address) && $this->getParameter('googlemaps_api_key')) {
|
|
if(!is_null($address) && $this->getParameter('googlemaps_api_key')) {
|
|
$key = $this->getParameter('googlemaps_api_key');
|
|
$key = $this->getParameter('googlemaps_api_key');
|
|
$addr = urlencode($address);
|
|
$addr = urlencode($address);
|
|
- $data = $this->getSslPage("https://maps.googleapis.com/maps/api/geocode/json?address={$addr}&key={$key}");
|
|
|
|
-
|
|
|
|
|
|
+
|
|
try {
|
|
try {
|
|
|
|
+ $data = $this->getSslPage("https://maps.googleapis.com/maps/api/geocode/json?address={$addr}&key={$key}");
|
|
$data = json_decode($data,true);
|
|
$data = json_decode($data,true);
|
|
} catch(\Exception $e) {
|
|
} catch(\Exception $e) {
|
|
$data = array();
|
|
$data = array();
|