Commit 2ee27283 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch 'dupe-code-warning' into 'develop'

Warn about duplicate code in a comment

See merge request ispconfig/ispconfig3!1597
parents cf57ac78 161173f9
...@@ -397,6 +397,8 @@ class remoting_client extends remoting { ...@@ -397,6 +397,8 @@ class remoting_client extends remoting {
return false; return false;
} }
// DUPLICATE CODE IN interface/web/client/client_del.php
$client_id = $app->functions->intval($client_id); $client_id = $app->functions->intval($client_id);
if($client_id > 0) { if($client_id > 0) {
......
...@@ -151,6 +151,8 @@ class page_action extends tform_actions { ...@@ -151,6 +151,8 @@ class page_action extends tform_actions {
function onBeforeDelete() { function onBeforeDelete() {
global $app, $conf; global $app, $conf;
// DUPLICATE CODE IN interface/lib/classes/remote.d/client.inc.php
$client_id = $app->functions->intval($this->dataRecord['client_id']); $client_id = $app->functions->intval($this->dataRecord['client_id']);
if($client_id > 0) { if($client_id > 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment