瀏覽代碼

Update command dhcp

Espinoza Guillermo 7 年之前
父節點
當前提交
ac38de86ee
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      composer.lock
  2. 1 1
      src/CablemodemBundle/Command/DHCPHostCRUDCommand.php

+ 2 - 2
composer.lock

@@ -1677,7 +1677,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@gogs.infra.flowdat.com:222/VendorSoftwareFlowdat3/Webservice.git",
-                "reference": "7425e39fc61b46db91ddcfb405adc1b9f38c0d59"
+                "reference": "b978807806c1074a0e752523161961243043de78"
             },
             "require": {
                 "ext-curl": "*",
@@ -1690,7 +1690,7 @@
                 }
             },
             "description": "The Flowdat3 Webservice Rest",
-            "time": "2018-05-22T17:32:16+00:00"
+            "time": "2018-05-30T18:31:20+00:00"
         },
         {
             "name": "ik/workflow-bundle",

+ 1 - 1
src/CablemodemBundle/Command/DHCPHostCRUDCommand.php

@@ -80,7 +80,7 @@ EOT
                     'name' => 'Cablemodem',
                 ]);
                 $hostTypeJSON = $webservice->makeGetRequest($url, HttpRequestInterface::METHOD_GET, [], $credentials);
-                if ($hostTypeJSON != '') {
+                if ($hostTypeJSON != '' && !is_null($hostTypeJSON)) {
                     $hostType = current(json_decode($hostTypeJSON, true))['id'];
                 }
             }