From aebc94e92488fa3ecaaebe713560b65986a271d4 Mon Sep 17 00:00:00 2001
From: mrtnzlml <mrtnzlml@ispconfig3>
Date: Fri, 26 Jul 2013 19:41:35 +0000
Subject: [PATCH] fixed bug, see
 http://www.howtoforge.com/forums/showthread.php?p=298953

---
 interface/lib/classes/remoting_lib.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php
index bcfd61924..5186c3c2d 100644
--- a/interface/lib/classes/remoting_lib.inc.php
+++ b/interface/lib/classes/remoting_lib.inc.php
@@ -784,8 +784,8 @@ class remoting_lib {
                         if($primary_id != 0) {
                                 // update client permissions only if client_id > 0
 								if($this->formDef['auth'] == 'yes' && $this->client_id > 0) {
-									$sql_update .= '`sys_userid` = '.$this->sys_userid.', ';
-									$sql_update .= '`sys_groupid` = '.$this->sys_default_group.', ';
+									$sql_update .= '`sys_userid` = "'.$this->sys_userid.'", ';
+									$sql_update .= '`sys_groupid` = "'.$this->sys_default_group.'", ';
 								}
 								$sql_update = substr($sql_update,0,-2);
                                 $sql = "UPDATE ".$escape.$this->formDef['db_table'].$escape." SET ".$sql_update." WHERE ".$this->formDef['db_table_idx']." = ".$primary_id;
-- 
GitLab