Commit d6d5591b authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic

Bug 1803194: Need to include the user object

behatnotneeded

Change-Id: Ia7cd266ab5552e14a14f0ec3412448a249a06af9
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit b77049b2)
parent 196c6ea1
...@@ -416,6 +416,7 @@ function group_create($data) { ...@@ -416,6 +416,7 @@ function group_create($data) {
// Need to make sure group has at least one member // Need to make sure group has at least one member
if (empty($data['members'])) { if (empty($data['members'])) {
global $USER;
$data['members'] = array($USER->get('id') => 'admin'); $data['members'] = array($USER->get('id') => 'admin');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment