Skip to content

Commit

Permalink
Fixes #380
Browse files Browse the repository at this point in the history
  • Loading branch information
crossan007 committed Feb 27, 2016
1 parent 3a3c67e commit 8c60d98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion churchinfo/CartToGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
// Include the function library
require "Include/Config.php";
require "Include/Functions.php";
require_once "Service/GroupService.php";

$groupService = new GroupService();

// Security: User must have Manage Groups & Roles permission
if (!$_SESSION['bManageGroups'])
Expand All @@ -39,7 +42,7 @@
// Loop through the session array
$iCount = 0;
while ($element = each($_SESSION['aPeopleCart'])) {
AddToGroup($_SESSION['aPeopleCart'][$element['key']],$iGroupID,$iGroupRole);
$groupService->addUserToGroup($iGroupID, $_SESSION['aPeopleCart'][$element['key']], $iGroupRole);
$iCount += 1;
}

Expand Down

0 comments on commit 8c60d98

Please sign in to comment.