Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Jozef Sroka
ISPConfig 3
Commits
2e4fc101
Commit
2e4fc101
authored
Sep 25, 2016
by
Florian Schaal
Browse files
fixe typo
parent
2475fad8
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/plugins/dns_dns_slave_plugin.inc.php
View file @
2e4fc101
...
...
@@ -40,7 +40,7 @@ class dns_dns_slave_plugin {
//** When the client group has changed, change also the owner of the record if the owner is not the admin user
if
(
$page_form
->
oldDataRecord
&&
$page_form
->
oldDataRecord
[
"client_group_id"
]
!=
$page_form
->
dataRecord
[
"client_group_id"
]
&&
$page_form
->
dataRecord
[
"sys_userid"
]
!=
1
)
{
$client_group_id
=
$app
->
functions
->
intval
(
$page_form
->
dataRecord
[
"client_group_id"
]);
$tmp
=
$app
->
db
->
queryOneR
E
cord
(
"SELECT userid FROM sys_user WHERE default_group = ?"
,
$client_group_id
);
$tmp
=
$app
->
db
->
queryOneR
e
cord
(
"SELECT userid FROM sys_user WHERE default_group = ?"
,
$client_group_id
);
if
(
$tmp
[
"userid"
]
>
0
)
{
$app
->
db
->
query
(
"UPDATE dns_slave SET sys_userid = ? WHERE id = ?"
,
$tmp
[
"userid"
],
$page_form
->
id
);
}
...
...
interface/lib/plugins/dns_dns_soa_plugin.inc.php
View file @
2e4fc101
...
...
@@ -38,7 +38,7 @@ class dns_dns_soa_plugin {
//** When the client group has changed, change also the owner of the record if the owner is not the admin user
if
(
$page_form
->
oldDataRecord
[
"client_group_id"
]
!=
$page_form
->
dataRecord
[
"client_group_id"
]
&&
$page_form
->
dataRecord
[
"sys_userid"
]
!=
1
)
{
$client_group_id
=
$app
->
functions
->
intval
(
$page_form
->
dataRecord
[
"client_group_id"
]);
$tmp
=
$app
->
db
->
queryOneR
E
cord
(
"SELECT userid FROM sys_user WHERE default_group = ?"
,
$client_group_id
);
$tmp
=
$app
->
db
->
queryOneR
e
cord
(
"SELECT userid FROM sys_user WHERE default_group = ?"
,
$client_group_id
);
if
(
$tmp
[
"userid"
]
>
0
)
{
$app
->
db
->
query
(
"UPDATE dns_soa SET sys_userid = ? WHERE id = ?"
,
$tmp
[
"userid"
],
$page_form
->
id
);
$app
->
db
->
query
(
"UPDATE dns_rr SET sys_userid = ? WHERE zone = ?"
,
$tmp
[
"userid"
],
$page_form
->
id
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment