Skip to content
Snippets Groups Projects
Commit bdbad50c authored by tbrehm's avatar tbrehm
Browse files

Changed Commit #4061: The values for sys_userid and sys_groupid may not be empty.

parent fbe6a211
No related branches found
No related tags found
No related merge requests found
...@@ -783,9 +783,9 @@ class remoting_lib { ...@@ -783,9 +783,9 @@ class remoting_lib {
} else { } else {
if($primary_id != 0) { if($primary_id != 0) {
// update client permissions only if client_id > 0 // update client permissions only if client_id > 0
if($this->formDef['auth'] == 'yes' && $this->client_id > 0) { if($this->formDef['auth'] == 'yes' && $this->client_id > 0 && $this->sys_userid > 0 && $this->sys_default_group > 0) {
$sql_update .= '`sys_userid` = "'.$this->sys_userid.'", '; $sql_update .= '`sys_userid` = '.$this->sys_userid.', ';
$sql_update .= '`sys_groupid` = "'.$this->sys_default_group.'", '; $sql_update .= '`sys_groupid` = '.$this->sys_default_group.', ';
} }
$sql_update = substr($sql_update,0,-2); $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; $sql = "UPDATE ".$escape.$this->formDef['db_table'].$escape." SET ".$sql_update." WHERE ".$this->formDef['db_table_idx']." = ".$primary_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment