Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
ISPConfig 3
Commits
1db06ade
Verified
Commit
1db06ade
authored
2 years ago
by
Helmo
Browse files
Options
Downloads
Patches
Plain Diff
Remove duplicate query
One was also without a placeholder
parent
dce41994
No related branches found
No related tags found
1 merge request
!1714
Remove duplicate query
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/plugins-available/shelluser_base_plugin.inc.php
+1
-2
1 addition, 2 deletions
server/plugins-available/shelluser_base_plugin.inc.php
with
1 addition
and
2 deletions
server/plugins-available/shelluser_base_plugin.inc.php
+
1
−
2
View file @
1db06ade
...
...
@@ -336,13 +336,12 @@ class shelluser_base_plugin {
// Get the UID of the user
$userid
=
intval
(
$app
->
system
->
getuid
(
$data
[
'old'
][
'username'
]));
if
(
$userid
>
$this
->
min_uid
)
{
$web
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM web_domain WHERE domain_id =
"
.
intval
(
$data
[
'old'
][
'parent_domain_id'
])
)
;
$web
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM web_domain WHERE domain_id =
?"
,
$data
[
'old'
][
'parent_domain_id'
]);
// check if we have to delete the dir
$check
=
$app
->
db
->
queryOneRecord
(
'SELECT shell_user_id FROM `shell_user` WHERE `dir` = ?'
,
$data
[
'old'
][
'dir'
]);
if
(
!
$check
&&
is_dir
(
$data
[
'old'
][
'dir'
]))
{
$web
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM web_domain WHERE domain_id = ?"
,
$data
[
'old'
][
'parent_domain_id'
]);
$app
->
system
->
web_folder_protection
(
$web
[
'document_root'
],
false
);
// delete dir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment