Changeset 413


Ignore:
Timestamp:
10/05/12 14:54:43 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Update dns-rpc.cgi getSOA. See #43.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-rpc.cgi

    r412 r413  
    286286  _commoncheck(\%args);
    287287
    288   my %ret = DNSDB::getSOA($dbh, $args{def}, $args{id});
    289   if (!$ret{recid}) {
    290     if ($args{def} eq 'y') {
     288  my $ret = DNSDB::getSOA($dbh, $args{defrec}, $args{revrec}, $args{id});
     289  if (!$ret) {
     290    if ($args{defrec} eq 'y') {
    291291      die "No default SOA record in group\n";
    292292    } else {
    293       die "No SOA record in domain\n";
     293      die "No SOA record in zone\n";
    294294    }
    295295  }
    296   return \%ret;
     296  return $ret;
    297297}
    298298
Note: See TracChangeset for help on using the changeset viewer.