Avoid an 'undefined index' notice

This commit is contained in:
Axel ROGER 2013-01-24 15:26:43 +00:00
parent becb648b12
commit 4af8814aaa
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ while (list($key,$val)=each($hl)) {
$ho=$val["hostname"];
$ty=$val["desc"];
echo "<input type=\"checkbox\" name=\"hostaliases[]\" id=\"ha_$ho\" value=\"$ho\"";
if (in_array($ho,explode(" ",$hatab[0]))) echo " checked=\"checked\"";
if (in_array($ho,@explode(" ",$hatab[0]))) echo " checked=\"checked\"";
echo " /><label for=\"ha_$ho\">$ho ($ty)</label><br />\n";
}
?>