diff --git a/lam/lib/types/dhcp.inc b/lam/lib/types/dhcp.inc index fd809059..268dcd73 100644 --- a/lam/lib/types/dhcp.inc +++ b/lam/lib/types/dhcp.inc @@ -91,9 +91,9 @@ class dhcp extends baseType { */ public function getListAttributeDescriptions() { return array ( - "cn" => ("Subnet"), - "dhcprange" => ("IP range"), - "fixed_ips" => ("Fixed IP address / MAC address / description") + "cn" => _("Subnet"), + "dhcprange" => _("Ranges"), + "fixed_ips" => _("Fixed IP address / MAC address / description") ); } @@ -142,8 +142,13 @@ class lamDHCPList extends lamList { echo "
".array_pop(explode(" ",$entries[$i]['dhcpstatements'][0]))." | "; - echo "".array_pop(explode(" ",$entries[$i]['dhcphwaddress'][0]))." | "; + $dhcpstatements = array(''); + if (isset($entries[$i]['dhcpstatements'][0])) { + $dhcpstatements = explode(" ",$entries[$i]['dhcpstatements'][0]); + } + echo "".array_pop($dhcpstatements)." | "; + $dhcphwaddress = explode(" ",$entries[$i]['dhcphwaddress'][0]); + echo "".array_pop($dhcphwaddress)." | "; echo "".$entries[$i]['cn'][0]." | "; echo "