diff --git a/Backend/Controllers/Group/GetGroup.php b/Backend/Controllers/Group/GetGroup.php index f7d2fc7..be2e0bf 100644 --- a/Backend/Controllers/Group/GetGroup.php +++ b/Backend/Controllers/Group/GetGroup.php @@ -2,8 +2,8 @@ require_once "../../../bootstrap.php"; use Backend\Models\Group; -if (isset($_POST["GroupId"])){ -$groups = Group::find($_POST["GroupId"]); +if (isset($_POST["groupId"])){ +$groups = Group::find($_POST["groupId"]); } elseif(isset($_POST["gameJameId"])){ $groups = Group::where("game_jam_id",$_POST["gameJameId"]);