diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-18 18:23:50 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-18 18:23:50 +0000 |
commit | 361bff59658e6119b76e7ff31cd67c6054c93c8f (patch) | |
tree | 115c0eb308aa1312f7e69b52506eb625a2887c0d /mod | |
parent | 0c997a2fe195542c1cdec5b828cea87d0992dc78 (diff) | |
download | elgg-361bff59658e6119b76e7ff31cd67c6054c93c8f.tar.gz elgg-361bff59658e6119b76e7ff31cd67c6054c93c8f.tar.bz2 |
Moved container_guid to entities, modified a bunch of functions.
git-svn-id: https://code.elgg.org/elgg/trunk@1473 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/actions/addtogroup.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php index 1910a8196..eb079e959 100644 --- a/mod/groups/actions/addtogroup.php +++ b/mod/groups/actions/addtogroup.php @@ -21,12 +21,11 @@ $user_guid = array($user_guid); $group_guid = get_input('group_guid'); - + if (sizeof($user_guid)) foreach ($user_guid as $u_id) { $requested = false; - $user = get_entity($u_id); - $group = get_entity($group_guid); + if ($user = get_entity($u_id) && $group = get_entity($group_guid)) { if ($_SESSION['user']->getGUID() == $group->owner_guid) { @@ -87,12 +86,12 @@ else register_error(elgg_echo("groups:usernotinvited")); } - } + }
+ }
+ else
+ register_error(elgg_echo("groups:notowner")); } - else - register_error(elgg_echo("groups:notowner")); } forward($forward_url); - exit; ?>
\ No newline at end of file |