Changeset 343 for trunk


Ignore:
Timestamp:
06/11/12 17:29:16 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix lurking minor buglet where delZone() wouldn't fail early if
the zone ID didn't exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r342 r343  
    17631763  my $failmsg = '';
    17641764  my $zone = ($revrec eq 'n' ? domainName($dbh, $zoneid) : revName($dbh, $zoneid));
     1765
     1766  return ('FAIL', ($revrec eq 'n' ? 'Domain' : 'Reverse zone')." ID $zoneid doesn't exist") if !$zone;
    17651767
    17661768  # Set this up here since we may use if if $config{log_failures} is enabled
Note: See TracChangeset for help on using the changeset viewer.