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
Zvonimir
ISPConfig 3
Commits
6b784f2e
Commit
6b784f2e
authored
Aug 12, 2014
by
Sergio
Browse files
avoid delete domain if in use as alias or vhost
parent
587fe4ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/domain_del.php
View file @
6b784f2e
...
...
@@ -80,7 +80,7 @@ class page_action extends tform_actions {
$app
->
error
(
$wb
[
'error_domain_in mailuse'
]);
}
$sql
=
"SELECT domain_id FROM web_domain WHERE domain = '"
.
$app
->
db
->
quote
(
$domain
)
.
"'"
;
$sql
=
"SELECT domain_id FROM web_domain WHERE domain = '"
.
$app
->
db
->
quote
(
$domain
)
.
"'
AND type IN ('alias', 'vhost')
"
;
$res
=
$app
->
db
->
queryOneRecord
(
$sql
);
if
(
is_array
(
$res
)){
$app
->
error
(
$wb
[
'error_domain_in webuse'
]);
...
...
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