mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-09-19 22:08:54 +00:00
Fix issue with previous commit.
This commit is contained in:
@@ -71,7 +71,7 @@ class GroupsController {
|
|||||||
$groupID = getPostGroupIdWithAccess("id", GroupInfo::LIMITED_ACCESS);
|
$groupID = getPostGroupIdWithAccess("id", GroupInfo::LIMITED_ACCESS);
|
||||||
|
|
||||||
//Get information about the group
|
//Get information about the group
|
||||||
$group = components()->groups->get_info($id);
|
$group = components()->groups->get_info($groupID);
|
||||||
|
|
||||||
//Check if the group was not found
|
//Check if the group was not found
|
||||||
if(!$group->isValid())
|
if(!$group->isValid())
|
||||||
@@ -92,7 +92,7 @@ class GroupsController {
|
|||||||
$groupID = getPostGroupIdWithAccess("id", GroupInfo::VIEW_ACCESS);
|
$groupID = getPostGroupIdWithAccess("id", GroupInfo::VIEW_ACCESS);
|
||||||
|
|
||||||
//Get information about the group
|
//Get information about the group
|
||||||
$group = components()->groups->get_advanced_info($id);
|
$group = components()->groups->get_advanced_info($groupID);
|
||||||
|
|
||||||
//Check if the group was not found
|
//Check if the group was not found
|
||||||
if(!$group->isValid())
|
if(!$group->isValid())
|
||||||
|
Reference in New Issue
Block a user