X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..HEAD:/templates/sidebar.block.related.php diff --git a/templates/sidebar.block.related.php b/templates/sidebar.block.related.php index 3a37718..15af8bf 100644 --- a/templates/sidebar.block.related.php +++ b/templates/sidebar.block.related.php @@ -1,11 +1,18 @@ getServiceInstance('TagService'); +$userservice =& $sf->getServiceInstance('UserService'); $logged_on_userid = $userservice->getCurrentUserId(); if ($logged_on_userid === false) { $logged_on_userid = NULL; } +if (!isset($userid)) { + $userid = NULL; +} +if (!isset($user)) { + $user = NULL; +} if ($currenttag) { $relatedTags = $tagservice->getRelatedTags($currenttag, $userid, $logged_on_userid); if (sizeof($relatedTags) > 0) { @@ -18,6 +25,7 @@ if ($currenttag) { + + @@ -26,4 +34,4 @@ if ($currenttag) { \ No newline at end of file +?>