[fix] work with 1.x

This commit is contained in:
root 2014-07-02 22:50:29 +02:00
parent 0f3554820f
commit 4ecfd9c73a
1 changed files with 7 additions and 3 deletions

View File

@ -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();
}
}
}