Catch up with php5

This commit is contained in:
Ermal 2010-03-25 15:01:31 +00:00
parent bedd946f59
commit c71f5fcda8

View File

@ -114,7 +114,7 @@ function services_dhcpd_configure() {
$optcounter = 0;
$custoptions = "";
foreach ($dhcpdcfg as $dhcpif => $dhcpifconf) {
if($dhcpifconf['numberoptions']['item']) {
if(is_array($dhcpifconf['numberoptions']) && is_array($dhcpifconf['numberoptions']['item'])) {
foreach($dhcpifconf['numberoptions']['item'] as $item) {
$custoptions .= "option custom-opt-$optcounter code {$item['number']} = text;\n";
$optcounter++;