Commit 9eefc1c8 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1765264: Group id not needed to be array for group_get_admin_ids()



A mistake made in the patch for Bug 1367539

behatnotneeded

Change-Id: If0b27c356887483532693153f0b8936b7d12eb14
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent a51cddc7
...@@ -1966,7 +1966,7 @@ class ArtefactTypeFile extends ArtefactTypeFileBase { ...@@ -1966,7 +1966,7 @@ class ArtefactTypeFile extends ArtefactTypeFileBase {
safe_require('notification', 'internal'); safe_require('notification', 'internal');
foreach ($groups as $group) { foreach ($groups as $group) {
// find the group admins and notify them - there should be at least 1 admin for a group // find the group admins and notify them - there should be at least 1 admin for a group
if ($admins = group_get_admin_ids(array($group->id))) { if ($admins = group_get_admin_ids($group->id)) {
$data = array( $data = array(
'subject' => get_string('adm_group_notificationsubject', 'artefact.file'), 'subject' => get_string('adm_group_notificationsubject', 'artefact.file'),
'message' => get_string('adm_group_notificationmessage', 'artefact.file', $group->name, ceil((int)$group->quotausedpercent), display_size($group->quota)), 'message' => get_string('adm_group_notificationmessage', 'artefact.file', $group->name, ceil((int)$group->quotausedpercent), display_size($group->quota)),
......
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