diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-05-10 08:59:41 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-05-10 08:59:41 +0000 |
commit | 2756e3f85818346a478725b6dd94a966e0d92c07 (patch) | |
tree | efad4c6566773670dc5f9a8b733f2a3ed3fe4a57 /templates/sidebar.block.menu.php | |
parent | e273c0d367da161651324eca1b7e4177c670c91f (diff) | |
download | semanticscuttle-2756e3f85818346a478725b6dd94a966e0d92c07.tar.gz semanticscuttle-2756e3f85818346a478725b6dd94a966e0d92c07.tar.bz2 |
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
Diffstat (limited to 'templates/sidebar.block.menu.php')
-rw-r--r-- | templates/sidebar.block.menu.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/sidebar.block.menu.php b/templates/sidebar.block.menu.php index 0c7087a..578db59 100644 --- a/templates/sidebar.block.menu.php +++ b/templates/sidebar.block.menu.php @@ -4,6 +4,11 @@ $userservice =& ServiceFactory::getServiceInstance('UserService'); require_once('sidebar.linkedtags.inc.php'); +/* Manage input */ +$userid = isset($userid)?$userid:0; +$user = isset($user)?$user:null; + + $logged_on_userid = $userservice->getCurrentUserId(); if ($logged_on_userid === false) { $logged_on_userid = NULL; @@ -16,7 +21,7 @@ if(($logged_on_userid != null) && ($userid === $logged_on_userid)) { $editingMode = false; } -if(strlen($user)==0) { +if(!isset($user)) { $cat_url = createURL('tags', '%2$s'); } |