PHP 5.3 compatibility
This commit is contained in:
parent
16c6ab8b34
commit
079440dc97
|
@ -147,14 +147,16 @@ class lamDHCPList extends lamList {
|
||||||
// Now list all fixed_ips:
|
// Now list all fixed_ips:
|
||||||
echo "<table border=\"0\" width=\"100%\">";
|
echo "<table border=\"0\" width=\"100%\">";
|
||||||
$this->fixed_ips = array();
|
$this->fixed_ips = array();
|
||||||
foreach($get AS $id=>$arr) {
|
if (isset($get)) {
|
||||||
if (is_numeric($id)) {
|
foreach($get AS $id=>$arr) {
|
||||||
echo "<tr>";
|
if (is_numeric($id)) {
|
||||||
echo "<td width=\"25%\">".array_pop(explode(" ",$get[$id]['dhcpstatements'][0]))."</td>";
|
echo "<tr>";
|
||||||
echo "<td width=\"35%\">".array_pop(explode(" ",$get[$id]['dhcphwaddress'][0]))."</td>";
|
echo "<td width=\"25%\">".array_pop(explode(" ",$get[$id]['dhcpstatements'][0]))."</td>";
|
||||||
echo "<td width=\"40%\">".$get[$id]['cn'][0]."</td>";
|
echo "<td width=\"35%\">".array_pop(explode(" ",$get[$id]['dhcphwaddress'][0]))."</td>";
|
||||||
echo "</tr>";
|
echo "<td width=\"40%\">".$get[$id]['cn'][0]."</td>";
|
||||||
}
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue