aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/joinrequest.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/joinrequest.php')
-rw-r--r--mod/groups/actions/joinrequest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/groups/actions/joinrequest.php b/mod/groups/actions/joinrequest.php
index a315c1733..f46eb1b2a 100644
--- a/mod/groups/actions/joinrequest.php
+++ b/mod/groups/actions/joinrequest.php
@@ -30,6 +30,9 @@
if ($invites)
{
+ if (!is_array($invites))
+ $invites = array($invites);
+
foreach ($invites as $invite)
{
if ($invite == $group->getGUID())