We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a36506f + 9856af9 commit faa6950Copy full SHA for faa6950
interface/web/dns/dns_import.php
@@ -58,7 +58,11 @@
58
59
// import variables
60
$template_id = (isset($_POST['template_id']))?$app->functions->intval($_POST['template_id']):0;
61
-$sys_groupid = (isset($_POST['client_group_id']))?$app->functions->intval($_POST['client_group_id']):0;
+if (isset($_POST['client_group_id'])) {
62
+ $sys_groupid = $app->functions->intval($_POST['client_group_id']);
63
+} else {
64
+ $sys_groupid = $_SESSION["s"]["user"]["default_group"];
65
+}
66
$domain = (isset($_POST['domain'])&&!empty($_POST['domain']))?$_POST['domain']:NULL;
67
68
// get the correct server_id
0 commit comments