X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..HEAD:/templates/sidebar.block.popular.php diff --git a/templates/sidebar.block.popular.php b/templates/sidebar.block.popular.php index fc9703d..05b73ad 100644 --- a/templates/sidebar.block.popular.php +++ b/templates/sidebar.block.popular.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; +} $popularTags =& $tagservice->getPopularTags($userid, $popCount, $logged_on_userid); $popularTags =& $tagservice->tagCloud($popularTags, 5, 90, 225, 'alphabet_asc');