fixed translation and PHP notices
This commit is contained in:
parent
bb5619dc54
commit
7a095db1c8
|
@ -91,9 +91,9 @@ class dhcp extends baseType {
|
||||||
*/
|
*/
|
||||||
public function getListAttributeDescriptions() {
|
public function getListAttributeDescriptions() {
|
||||||
return array (
|
return array (
|
||||||
"cn" => ("Subnet"),
|
"cn" => _("Subnet"),
|
||||||
"dhcprange" => ("IP range"),
|
"dhcprange" => _("Ranges"),
|
||||||
"fixed_ips" => ("Fixed IP address / MAC address / description")
|
"fixed_ips" => _("Fixed IP address / MAC address / description")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,8 +142,13 @@ class lamDHCPList extends lamList {
|
||||||
echo "<table border=\"0\" width=\"100%\">";
|
echo "<table border=\"0\" width=\"100%\">";
|
||||||
for ($i = 0; $i < sizeof($entries); $i++) {
|
for ($i = 0; $i < sizeof($entries); $i++) {
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td width=\"25%\">".array_pop(explode(" ",$entries[$i]['dhcpstatements'][0]))."</td>";
|
$dhcpstatements = array('');
|
||||||
echo "<td width=\"35%\">".array_pop(explode(" ",$entries[$i]['dhcphwaddress'][0]))."</td>";
|
if (isset($entries[$i]['dhcpstatements'][0])) {
|
||||||
|
$dhcpstatements = explode(" ",$entries[$i]['dhcpstatements'][0]);
|
||||||
|
}
|
||||||
|
echo "<td width=\"25%\">".array_pop($dhcpstatements)."</td>";
|
||||||
|
$dhcphwaddress = explode(" ",$entries[$i]['dhcphwaddress'][0]);
|
||||||
|
echo "<td width=\"35%\">".array_pop($dhcphwaddress)."</td>";
|
||||||
echo "<td width=\"40%\">".$entries[$i]['cn'][0]."</td>";
|
echo "<td width=\"40%\">".$entries[$i]['cn'][0]."</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
|
@ -164,7 +169,7 @@ class lamDHCPList extends lamList {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($attribute=="dhcprange") { // DHCP Range
|
elseif ($attribute=="dhcprange") { // DHCP Range
|
||||||
if (is_array($entry['dhcprange'])) {
|
if (isset($entry['dhcprange'])) {
|
||||||
echo"<table cellspacing=\"0\">";
|
echo"<table cellspacing=\"0\">";
|
||||||
foreach($entry['dhcprange'] AS $id=>$value) {
|
foreach($entry['dhcprange'] AS $id=>$value) {
|
||||||
if (!is_numeric($value)) {
|
if (!is_numeric($value)) {
|
||||||
|
|
Loading…
Reference in New Issue