[fix] work with 1.x
This commit is contained in:
parent
0f3554820f
commit
4ecfd9c73a
|
@ -33,7 +33,11 @@ class Alternc_Diagnostic_Service_Dns
|
||||||
/** @var m_dom */
|
/** @var m_dom */
|
||||||
global $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
|
// Writes the domains list
|
||||||
$this->writeSectionData (self::SECTION_LIST,$this->domainList);
|
$this->writeSectionData (self::SECTION_LIST,$this->domainList);
|
||||||
|
|
Loading…
Reference in New Issue