From 279e55cb0a0223f518e8593f7ac3df83554ab602 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 2 Dec 2008 09:39:53 +0000 Subject: Minor fix git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@183 b3834d28-1941-0410-a4f8-b48e95affb8f --- ajax/getlinkedtags.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'ajax/getlinkedtags.php') diff --git a/ajax/getlinkedtags.php b/ajax/getlinkedtags.php index fa8f2d0..feb70ae 100644 --- a/ajax/getlinkedtags.php +++ b/ajax/getlinkedtags.php @@ -23,19 +23,16 @@ require_once('../header.inc.php'); +/* Service creation: only useful services are created */ $b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService'); $bookmarkservice =& ServiceFactory::getServiceInstance('TagService'); $userservice =& ServiceFactory::getServiceInstance('UserService'); $tagstatservice =& ServiceFactory::getServiceInstance('TagStatService'); -$tag = $_GET['tag']; -$uId = $_GET['uId']; +/* Managing all possible inputs */ +isset($_GET['tag']) ? define('GET_TAG', $_GET['tag']): define('GET_TAG', ''); +isset($_GET['uId']) ? define('GET_UID', $_GET['uId']): define('GET_UID', ''); -if ($userservice->isLoggedOn()) { - $loggedon = true; - $currentUser = $userservice->getCurrentUser(); - $currentUserID = $userservice->getCurrentUserId(); -} function displayTag($tag, $uId) { $tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService'); @@ -58,6 +55,6 @@ function displayTag($tag, $uId) { { label: 'name', identifier: 'id', items: [ ] } -- cgit v1.2.3