From 2756e3f85818346a478725b6dd94a966e0d92c07 Mon Sep 17 00:00:00 2001 From: mensonge Date: Sat, 10 May 2008 08:59:41 +0000 Subject: Bug fixes: correct minor bugs appearing with 'notice' level in PHP git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@122 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/sidebar.block.recent.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/sidebar.block.recent.php') diff --git a/templates/sidebar.block.recent.php b/templates/sidebar.block.recent.php index e720533..cc04b97 100644 --- a/templates/sidebar.block.recent.php +++ b/templates/sidebar.block.recent.php @@ -2,6 +2,9 @@ $b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService'); $userservice =& ServiceFactory::getServiceInstance('UserService'); +/* Manage input */ +$userid = isset($userid)?$userid:0; + $logged_on_userid = $userservice->getCurrentUserId(); if ($logged_on_userid === false) { $logged_on_userid = NULL; -- cgit v1.2.3