fixed undefined index warning due to strange dig output
This commit is contained in:
parent
7e2deb9d05
commit
d8209893c7
2 changed files with 2 additions and 4 deletions
|
@ -1 +1 @@
|
|||
58901
|
||||
58953
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue