summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--og.module10
1 files changed, 6 insertions, 4 deletions
diff --git a/og.module b/og.module
index b521550..24744ad 100644
--- a/og.module
+++ b/og.module
@@ -1095,11 +1095,13 @@ function og_page_activity() {
//
function og_view_group(&$node, $teaser = FALSE, $page = FALSE) {
if ($teaser || !$page) {
- $node->content['og_description'] = array(
- '#type' => 'item',
- '#title' => t('Description'),
- '#value' => $node->og_description,
+ if (!empty($node->og_description)) {
+ $node->content['og_description'] = array(
+ '#type' => 'item',
+ '#title' => t('Description'),
+ '#value' => check_plain($node->og_description),
);
+ }
}
else {
$bc[] = array('path' => "og", 'title' => t('Groups'));