fixed undefined index warning due to strange dig output

This commit is contained in:
root 2010-10-07 13:03:50 +02:00
parent 7e2deb9d05
commit d8209893c7
2 changed files with 2 additions and 4 deletions

View file

@ -1 +1 @@
58901
58953

View file

@ -115,12 +115,10 @@ class NameServer implements Object {
foreach ($return as $line) {
if (substr($line, 0, 1) != ';' && !empty($line)) {
$result = array();
$output->add('dig line', 'debug', 4, explode("\t", $line));
foreach (explode("\t", $line) as $column) {
foreach (preg_split("/\s+/", $line) as $column) {
if (!empty($column))
$result[] = $column;
}
$results[] = $result;
}
}