gabriel 6 lat temu
rodzic
commit
322946783f
2 zmienionych plików z 11 dodań i 8 usunięć
  1. 6 6
      composer.lock
  2. 5 2
      src/KeaBundle/Services/BaseKea.php

+ 6 - 6
composer.lock

@@ -1458,7 +1458,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/BaseAdmin.git",
-                "reference": "a9ac82b11f59296261adc49e17b0b32849d0b0e5"
+                "reference": "65b2f7d20973ab2108bd5a2a03acd5c6364e2ff2"
             },
             "type": "library",
             "autoload": {
@@ -1473,7 +1473,7 @@
                 "bootstrap",
                 "sonata"
             ],
-            "time": "2019-04-03T12:39:50+00:00"
+            "time": "2019-04-05T14:00:21+00:00"
         },
         {
             "name": "ik/check-sintax-bundle",
@@ -1573,7 +1573,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/BaseOAuthClientBundle.git",
-                "reference": "fe4d1edd01493e18cd15c5108200c85853b9947e"
+                "reference": "ddcdd35701577440b564b42a65ea55e0f675cd96"
             },
             "require": {
                 "ext-curl": "*",
@@ -1592,7 +1592,7 @@
                 "bundle",
                 "oauth"
             ],
-            "time": "2019-03-01T17:46:20+00:00"
+            "time": "2019-04-05T15:00:43+00:00"
         },
         {
             "name": "ik/owner-voter-bundle",
@@ -1649,7 +1649,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/Webservice.git",
-                "reference": "7b977e8167e932b826c6ed470b1abb4bb7f999d5"
+                "reference": "8767981f13e591b805cde0ee8319fb8f15a4b364"
             },
             "require": {
                 "ext-curl": "*",
@@ -1662,7 +1662,7 @@
                 }
             },
             "description": "The Flowdat3 Webservice Rest",
-            "time": "2019-03-14T18:25:25+00:00"
+            "time": "2019-04-05T14:57:21+00:00"
         },
         {
             "name": "ik/workflow-bundle",

+ 5 - 2
src/KeaBundle/Services/BaseKea.php

@@ -120,6 +120,7 @@ class BaseKea implements KeaConfigInterface
             'subnet4' => [],
         ];
         $hostType = $netGroup = $status = null;
+        $sharedNetworkTmp = [];
         if (isset($subnets[0])) {
             $hostType = $subnets[0]->getAllowedHostType();
             $netGroup = $subnets[0]->getNetGroup();
@@ -149,8 +150,10 @@ class BaseKea implements KeaConfigInterface
             }
             $sharedNetworkTmp['subnet4'][] = $this->getSubnetSharedNetwork($subnet, $reservations);
         }
-        
-        $this->shared_networks[] = $sharedNetworkTmp;
+
+        if (count($sharedNetworkTmp)) {
+            $this->shared_networks[] = $sharedNetworkTmp;
+        }
     }
 
     /**