Verified Commit 161173f9 authored by Helmo's avatar Helmo
Browse files

Warn about duplicate code in a comment

parent 221728d6
......@@ -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) {
......
......@@ -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) {
......
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