Skip to content

Commit 2ee2728

Browse files
author
Marius Burkard
committed
Merge branch 'dupe-code-warning' into 'develop'
Warn about duplicate code in a comment See merge request ispconfig/ispconfig3!1597
2 parents cf57ac7 + 161173f commit 2ee2728

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

interface/lib/classes/remote.d/client.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ public function client_delete_everything($session_id, $client_id)
397397
return false;
398398
}
399399

400+
// DUPLICATE CODE IN interface/web/client/client_del.php
401+
400402
$client_id = $app->functions->intval($client_id);
401403

402404
if($client_id > 0) {

interface/web/client/client_del.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ function onDelete() {
151151
function onBeforeDelete() {
152152
global $app, $conf;
153153

154+
// DUPLICATE CODE IN interface/lib/classes/remote.d/client.inc.php
155+
154156
$client_id = $app->functions->intval($this->dataRecord['client_id']);
155157

156158
if($client_id > 0) {

0 commit comments

Comments
 (0)