Commit 87484f5f authored by anarcat's avatar anarcat Committed by anarcat

fix is_empty() check

parent 95e38cc1
......@@ -172,9 +172,12 @@ class provisionConfig_dns_zone extends provisionConfig_dns {
* test to see if the
*/
function is_empty() {
$records = $this->config('zone', $zone)->merge_records();
$records = $this->store->merged_records();
// if there is any record that is not SOA or NS, this is
// considered empty
if (empty($records)) {
return TRUE;
}
foreach ($records as $name => $record) {
if ($name != '@') {
return FALSE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment