aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-02 11:57:44 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-02 11:57:44 +0000
commitf096b91267d0deaeec911939fbdd54177e9f1995 (patch)
tree37372a4ec5a05213bcda803e4f7e358eb566a4af
parente12df0066de0a68c452a1cf9978352a602dcc84f (diff)
downloadelgg-f096b91267d0deaeec911939fbdd54177e9f1995.tar.gz
elgg-f096b91267d0deaeec911939fbdd54177e9f1995.tar.bz2
not showing categories label if not categories chosen
git-svn-id: http://code.elgg.org/elgg/trunk@8568 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/categories/views/default/output/categories.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/categories/views/default/output/categories.php b/mod/categories/views/default/output/categories.php
index 38df83716..df254da4b 100644
--- a/mod/categories/views/default/output/categories.php
+++ b/mod/categories/views/default/output/categories.php
@@ -24,4 +24,6 @@ if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) {
}
-echo '<p class="elgg-output-categories">' . elgg_echo('categories') . ": $linkstr</p>";
+if ($linkstr) {
+ echo '<p class="elgg-output-categories">' . elgg_echo('categories') . ": $linkstr</p>";
+}