]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
not showing categories label if not categories chosen
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 2 Mar 2011 11:57:44 +0000 (11:57 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 2 Mar 2011 11:57:44 +0000 (11:57 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8568 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/categories/views/default/output/categories.php

index 38df8371637d2ef877844b614ad4a66cec28186b..df254da4bcf5695ba514fa1e5eb9abe2e758d612 100644 (file)
@@ -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>";
+}