Browse Source

Uncommented two lines.

Maximiliano Schvindt 6 years ago
parent
commit
46c771602a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/FTTHBundle/Controller/CaptivePortalController.php

+ 4 - 4
src/FTTHBundle/Controller/CaptivePortalController.php

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