diff options
Diffstat (limited to 'templates/sidebar.block.related.php')
-rw-r--r-- | templates/sidebar.block.related.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/sidebar.block.related.php b/templates/sidebar.block.related.php index 380c789..88d42d6 100644 --- a/templates/sidebar.block.related.php +++ b/templates/sidebar.block.related.php @@ -6,7 +6,12 @@ $logged_on_userid = $userservice->getCurrentUserId(); if ($logged_on_userid === false) { $logged_on_userid = NULL; } -if(strlen($user)==0) { + +if(!isset($userid)) { + $userid = NULL; +} + +if(isset($user) && strlen($user)==0) { $cat_url = createURL('tags', '%2$s'); } if ($currenttag) { |