Skip to content

Commit 1168660

Browse files
committed
Fixes 992 "3"
1 parent 8a3de9b commit 1168660

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/add/dns/index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
if (empty($_SESSION['error_msg'])) {
128128
exec (HESTIA_CMD."v-add-dns-record ".$user." ".$v_domain." ".$v_rec." ".$v_type." ".$v_val." ".$v_priority." '' false ".$v_ttl, $output, $return_var);
129129
check_return_code($return_var,$output);
130-
unset($output);
130+
unset($output);
131+
131132
}
132133
$v_type = $_POST['v_type'];
133134

@@ -179,6 +180,9 @@
179180
} else {
180181
// Display body for dns record
181182
$v_domain = $_GET['domain'];
183+
if (empty($v_rec)){
184+
$v_rec = '@';
185+
}
182186
render_page($user, $TAB, 'add_dns_rec');
183187
}
184188

0 commit comments

Comments
 (0)