Skip to content

Commit

Permalink
fixed issues 2/3 reported by eg
Browse files Browse the repository at this point in the history
  • Loading branch information
stasic committed Apr 2, 2012
1 parent ff0a947 commit 19369c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions add_record.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@
$content_rev = convert_ipv6addr_to_ptrrec($content);
$zone_rev_id = get_best_matching_zone_id_from_name($content_rev);
}
if ($zone_rev_id) {
$zone_rev = get_zone_name_from_id($zone_rev_id);
if ($zone_rev_id && $zone_rev_id != -1) {
$zone_name = get_zone_name_from_id($zone_id);
$fqdn_name = sprintf("%s.%s", $name, $zone_name);
if (add_record($zone_rev_id, $content_rev, 'PTR', $fqdn_name, $ttl, $prio)) {
Expand Down

0 comments on commit 19369c5

Please sign in to comment.