diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php index c496cb7e2233eb9fa85ad22eed9ce5faaa35b7d5..e2dcf6a1323655b0420bfd99781dd18a33769774 100644 --- a/interface/lib/classes/remoting_lib.inc.php +++ b/interface/lib/classes/remoting_lib.inc.php @@ -127,6 +127,10 @@ class remoting_lib extends tform_base { $_SESSION["s"]["user"]["typ"] = 'admin'; } else { $user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE client_id = ?", $this->client_id); + if(empty($user)) { + throw new SoapFault('invalid_client_id', 'Invalid client_id '.$this->client_id); + return false; + } $this->sys_username = $user['username']; $this->sys_userid = $user['userid']; $this->sys_default_group = $user['default_group'];