From 0fef208b7029d05f10d221afbd6e7cf740443b64 Mon Sep 17 00:00:00 2001 From: mensonge Date: Wed, 12 Mar 2008 09:17:13 +0000 Subject: Bug fix: don't look for users in related tags box if not existing git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@66 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/sidebar.block.related.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { \ No newline at end of file +?> -- cgit v1.2.3