aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/sidebar.block.related.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/sidebar.block.related.php b/templates/sidebar.block.related.php
index 3a37718..fd305a6 100644
--- a/templates/sidebar.block.related.php
+++ b/templates/sidebar.block.related.php
@@ -6,6 +6,9 @@ $logged_on_userid = $userservice->getCurrentUserId();
if ($logged_on_userid === false) {
$logged_on_userid = NULL;
}
+if(strlen($user)==0) {
+ $cat_url = createURL('tags', '%2$s');
+}
if ($currenttag) {
$relatedTags = $tagservice->getRelatedTags($currenttag, $userid, $logged_on_userid);
if (sizeof($relatedTags) > 0) {
@@ -26,4 +29,4 @@ if ($currenttag) {
<?php
}
}
-?> \ No newline at end of file
+?>