Explorar el Código

Fix dhcp command

Espinoza Guillermo hace 6 años
padre
commit
18acb1dda2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/CablemodemBundle/Command/DHCPHostCRUDCommand.php

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

@@ -151,7 +151,7 @@ EOT
             'fixed_address' => $fixedIP ?: null,
             'fixedIP' => $fixedIP ? true : false,
         ];
-        if ($type == 'mta' || $type == 'cpe') {
+        if (isset($hostId) && ($type == 'mta' || $type == 'cpe')) {
             unset($data['mac']);
             $data['host'] = $hostId;