Update api_users.class.php

This commit is contained in:
ptibogxiv 2019-11-26 21:34:45 +01:00 committed by GitHub
parent 27d6071a73
commit bc1f9f5aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,13 +449,13 @@ class Users extends DolibarrApi
* *
* Return an array with group informations * Return an array with group informations
* *
* @url GET /groups/{id} * @url GET /groups/{group}
* *
* @param int $id ID of group * @param int $id ID of group
* @param int $load_members Load members list or not {@min 0} {@max 1} * @param int $load_members Load members list or not {@min 0} {@max 1}
* @return array Array of User objects * @return array Array of User objects
*/ */
public function infoGroups($id, $load_members = 0) public function infoGroups($group, $load_members = 0)
{ {
global $db, $conf; global $db, $conf;
@ -464,7 +464,7 @@ class Users extends DolibarrApi
} }
$group_static = new UserGroup($this->db); $group_static = new UserGroup($this->db);
$result = $group_static->fetch($id, '', $load_members); $result = $group_static->fetch($group, '', $load_members);
if (!$result) if (!$result)
{ {