diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 20:39:44 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-15 20:39:44 +0000 |
commit | eab9fe7483be3a143a057c991c59e134ce2a8f25 (patch) | |
tree | 81112b28a910bc1c4322918de30ab80ef742126b /mod/groups/actions/joinrequest.php | |
parent | 1d1789d252a7879480a886c2bae8eb67bb782637 (diff) | |
download | elgg-eab9fe7483be3a143a057c991c59e134ce2a8f25.tar.gz elgg-eab9fe7483be3a143a057c991c59e134ce2a8f25.tar.bz2 |
Closes #234: Please use brackets defensively; The statement:
if ($user = get_entity($foo) && $group = get_entity($bar))
Will not do what you expect it to do!
git-svn-id: https://code.elgg.org/elgg/trunk@1954 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/actions/joinrequest.php')
-rw-r--r-- | mod/groups/actions/joinrequest.php | 3 |
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()) |