diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-06-29 23:44:44 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-06-29 23:44:44 -0400 |
commit | ef553768e2e79bce41d631970d6db19c7b099333 (patch) | |
tree | 343e571ee914aad3b2ef11b91f8ef5e0c9970821 /mod/notifications/views | |
parent | 0431c667de5736b0bd7733b7763d9bf2ba9caf05 (diff) | |
download | elgg-ef553768e2e79bce41d631970d6db19c7b099333.tar.gz elgg-ef553768e2e79bce41d631970d6db19c7b099333.tar.bz2 |
Refs #4580 - cleaned up the spaces/tabs issue with the pull request and no longer imploding a false (though the access collections method really should return an empty array so this isn't an issue)
Diffstat (limited to 'mod/notifications/views')
-rw-r--r-- | mod/notifications/views/default/notifications/subscriptions/collections.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php index 8ce77c4b2..207b2e3b9 100644 --- a/mod/notifications/views/default/notifications/subscriptions/collections.php +++ b/mod/notifications/views/default/notifications/subscriptions/collections.php @@ -101,13 +101,16 @@ END; <?php if ($collections = get_user_access_collections($user->guid)) { - foreach($collections as $collection) { + foreach ($collections as $collection) { $members = get_members_of_access_collection($collection->id, true); - $memberno = 0; - if ($members) { - $memberno = sizeof($members); - } - $members = implode(',', $members); + $memberno = 0; + if ($members) { + $memberno = sizeof($members); + $members = implode(',', $members); + } else { + $members = ''; + } + ?> <tr> |