From 596e30c05bbc9ea01dd3558fa8f49e6277924e10 Mon Sep 17 00:00:00 2001
From: Tommaso Basilici <t.basilici@19.coop>
Date: Fri, 9 Apr 2021 10:40:58 +0000
Subject: [PATCH] Update client.inc.php

---
 interface/lib/classes/remote.d/client.inc.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/interface/lib/classes/remote.d/client.inc.php b/interface/lib/classes/remote.d/client.inc.php
index fa20802b7d..a571b571a9 100644
--- a/interface/lib/classes/remote.d/client.inc.php
+++ b/interface/lib/classes/remote.d/client.inc.php
@@ -245,12 +245,12 @@ class remoting_client extends remoting {
 		$app->remoting_lib->ispconfig_sysuser_update($params, $client_id);
 		
 		// if canceled
-                if ($params['canceled']) {
-                        $result = functions::func_client_cancel($client_id, $params['canceled']);
-                }
-                // if locked
-                if ($params['locked']) {
-                        $result = functions::func_client_lock($client_id, $params['locked']);
+        if ($params['canceled']) {
+            $result = $app->functions->func_client_cancel($client_id, $params['canceled']);
+        }
+        // if locked
+        if ($params['locked']) {
+            $result = $app->functions->func_client_lock($client_id, $params['locked']);
 		}
 
 		return $affected_rows;
-- 
GitLab