summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-12 09:17:13 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-12 09:17:13 +0000
commit0fef208b7029d05f10d221afbd6e7cf740443b64 (patch)
treec6a5f144b8f7bc78ed30449524f61f5e3984ebfc
parentdb1dfcbff9ae28b7fa86444360d66ddab9abeb6e (diff)
downloadsemanticscuttle-0fef208b7029d05f10d221afbd6e7cf740443b64.tar.gz
semanticscuttle-0fef208b7029d05f10d221afbd6e7cf740443b64.tar.bz2
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
-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
+?>