From 1324b80369489bcf29c70c379e7bce49737f3db4 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 21 Nov 2013 11:29:13 -0500 Subject: [PATCH] Merge branch 'master' of /home/git/repositories/florian030/ispconfig3 --- interface/web/dns/dns_wizard.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/web/dns/dns_wizard.php b/interface/web/dns/dns_wizard.php index f01cb57..6aac2cc 100644 --- a/interface/web/dns/dns_wizard.php +++ b/interface/web/dns/dns_wizard.php @@ -120,8 +120,8 @@ } if($_SESSION["s"]["user"]["typ"] != 'admin') -{ - $client_group_id = $_SESSION["s"]["user"]["default_group"]; + + $client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]);{ $client_dns = $app->db->queryOneRecord("SELECT dns_servers FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); $client_dns['dns_servers_ids'] = explode(',', $client_dns['dns_servers']); @@ -163,7 +163,7 @@ if ($post_server_id) { - $client_group_id = $_SESSION["s"]["user"]["default_group"]; + $client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]); $client = $app->db->queryOneRecord("SELECT dns_servers FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id"); $client['dns_servers_ids'] = explode(',', $client['dns_servers']); -- Gitblit v1.9.1