mrtnzlml
2013-07-26 aebc94e92488fa3ecaaebe713560b65986a271d4
fixed bug, see http://www.howtoforge.com/forums/showthread.php?p=298953
1 files modified
4 ■■■■ changed files
interface/lib/classes/remoting_lib.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/classes/remoting_lib.inc.php
@@ -784,8 +784,8 @@
                        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;