[fix] work with 1.x
This commit is contained in:
parent
0f3554820f
commit
4ecfd9c73a
|
@ -32,8 +32,12 @@ class Alternc_Diagnostic_Service_Dns
|
|||
|
||||
/** @var m_dom */
|
||||
global $dom;
|
||||
|
||||
$this->domainList = $dom->get_domain_all_summary();
|
||||
|
||||
if( !is_a($dom, "system_bind")){
|
||||
|
||||
$this->data->setMetadata("Alternc 1.x: can't read DNS");
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
// Writes the domains list
|
||||
$this->writeSectionData (self::SECTION_LIST,$this->domainList);
|
||||
|
@ -108,4 +112,4 @@ class Alternc_Diagnostic_Service_Dns
|
|||
return $this->dom->enum_slave_account();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue