aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorMatt Beckett <beck24@gmail.com>2012-06-27 13:14:01 -0600
committerMatt Beckett <beck24@gmail.com>2012-06-27 13:14:01 -0600
commitce0348c9e491e4539923f8befa13841384280172 (patch)
tree47a645a633b0389e561f743af5b1f9c663f1edf3 /mod
parentcc8127e2191011698a7c0cf13882fedcd88678cc (diff)
downloadelgg-ce0348c9e491e4539923f8befa13841384280172.tar.gz
elgg-ce0348c9e491e4539923f8befa13841384280172.tar.bz2
Empty collections now report 0 members instead of 1
Diffstat (limited to 'mod')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/collections.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php
index e9497590d..e48302629 100644
--- a/mod/notifications/views/default/notifications/subscriptions/collections.php
+++ b/mod/notifications/views/default/notifications/subscriptions/collections.php
@@ -103,7 +103,10 @@ END;
if ($collections = get_user_access_collections(elgg_get_logged_in_user_guid())) {
foreach($collections as $collection) {
$members = get_members_of_access_collection($collection->id, true);
- $memberno = sizeof($members);
+ $memberno = 0;
+ if ($members) {
+ $memberno = sizeof($members);
+ }
$members = implode(',', $members);
?>