Skip to content

Commit

Permalink
Merge pull request poweradmin#323 from LeePorte/fix-zone_templ_id-null
Browse files Browse the repository at this point in the history
Add value for zone_templ_id
  • Loading branch information
SebTM authored Dec 31, 2017
2 parents 49c3fd1 + e2c1a65 commit b27f28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/record.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ function edit_zone_comment($zone_id, $comment) {
return false;
}
} else {
$query = "INSERT INTO zones (domain_id, owner, comment)
VALUES(" . $db->quote($zone_id, 'integer') . ",1," . $db->quote($comment, 'text') . ")";
$query = "INSERT INTO zones (domain_id, owner, comment, zone_templ_id)
VALUES(" . $db->quote($zone_id, 'integer') . ",1," . $db->quote($comment, 'text') . ",0)";
$result = $db->query($query);
if (PEAR::isError($result)) {
error($result->getMessage());
Expand Down

0 comments on commit b27f28b

Please sign in to comment.