Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Judah - MW
ISPConfig 3
Commits
161173f9
Unverified
Commit
161173f9
authored
Apr 08, 2022
by
Helmo
Browse files
Warn about duplicate code in a comment
parent
221728d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remote.d/client.inc.php
View file @
161173f9
...
...
@@ -397,6 +397,8 @@ class remoting_client extends remoting {
return
false
;
}
// DUPLICATE CODE IN interface/web/client/client_del.php
$client_id
=
$app
->
functions
->
intval
(
$client_id
);
if
(
$client_id
>
0
)
{
...
...
interface/web/client/client_del.php
View file @
161173f9
...
...
@@ -151,6 +151,8 @@ class page_action extends tform_actions {
function
onBeforeDelete
()
{
global
$app
,
$conf
;
// DUPLICATE CODE IN interface/lib/classes/remote.d/client.inc.php
$client_id
=
$app
->
functions
->
intval
(
$this
->
dataRecord
[
'client_id'
]);
if
(
$client_id
>
0
)
{
...
...
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