aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar.block.popular.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar.block.popular.php')
-rw-r--r--templates/sidebar.block.popular.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/sidebar.block.popular.php b/templates/sidebar.block.popular.php
index cc5c73a..b9c029f 100644
--- a/templates/sidebar.block.popular.php
+++ b/templates/sidebar.block.popular.php
@@ -2,6 +2,13 @@
$b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService');
$userservice =& ServiceFactory::getServiceInstance('UserService');
+if(!isset($user)) {
+ $user = '';
+}
+if(!isset($userid)) {
+ $userid = NULL;
+}
+
$logged_on_userid = $userservice->getCurrentUserId();
if ($logged_on_userid === false) {
$logged_on_userid = NULL;