diff options
-rw-r--r-- | mod/groups/languages/en.php | 2 | ||||
-rw-r--r-- | mod/groups/lib/groups.php | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index bd4d3209f..dbdc0a128 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -60,7 +60,7 @@ $english = array( 'groups:activity' => "Group activity", 'groups:enableactivity' => 'Enable group activity', - 'groups:no_activity' => "There is no group activity yet", + 'groups:activity:none' => "There is no group activity yet", 'groups:notfound' => "Group not found", 'groups:notfound:details' => "The requested group either does not exist or you do not have access to it", diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php index dbbaf4366..0855f73d6 100644 --- a/mod/groups/lib/groups.php +++ b/mod/groups/lib/groups.php @@ -242,7 +242,10 @@ function groups_handle_activity_page($guid) { 'joins' => array("JOIN {$db_prefix}entities e ON e.guid = rv.object_guid"), 'wheres' => array("e.container_guid = $guid") )); - + if (!$content) { + $content = '<p>' . elgg_echo('groups:activity:none') . '</p>'; + } + $params = array( 'content' => $content, 'title' => $title, |