diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index a0e3106514..d62f94bc9a 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -4300,11 +4300,11 @@ function api_set_create_group($id, $thrash1, $other, $thrash3) { * * @param integer $id Group ID * @param $thrash2 Don't use. - * @param array $other it's array, $other as param is ;;;;;;;;; in this order + * @param array $other it's array, $other as param is ;;;;;;;; in this order * and separator char (after text ; ) and separator (pass in param othermode as othermode=url_encode_separator_) * example: * - * api.php?op=set&op2=update_group&id=example_group_id&other=New%20Name|application|2|1|0|custom%20id|0|new%20description||&other_mode=url_encode_separator_| + * api.php?op=set&op2=update_group&id=example_group_id&other=New%20Name|application|2|new%20description|1|0|custom%20id||&other_mode=url_encode_separator_| * * @param $thrash3 Don't use */ @@ -4314,23 +4314,21 @@ function api_set_update_group($id_group, $thrash2, $other, $thrash3) { $name = $other['data'][0]; $icon = $other['data'][1]; $parent = $other['data'][2]; - $propagate = $other['data'][3]; - $disabled = $other['data'][4]; - $custom_id = $other['data'][5]; - $id_skin = $other['data'][6]; - $description = $other['data'][7]; - $contact = $other['data'][8]; - $other = $other['data'][9]; + $description = $other['data'][3]; + $propagate = $other['data'][4]; + $disabled = $other['data'][5]; + $custom_id = $other['data'][6]; + $contact = $other['data'][7]; + $other = $other['data'][8]; $return = db_process_sql_update('tgrupo', array('nombre' => $name, 'icon' => $icon, 'parent' => $parent, + 'description' => $description, 'propagate' => $propagate, 'disabled' => $disabled, 'custom_id' => $custom_id, - 'id_skin' => $id_skin, - 'description' => $description, 'contact' => $contact, 'other' => $other), array('id_grupo' => $id_group));