diff options
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/getlinkedtags.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ajax/getlinkedtags.php b/ajax/getlinkedtags.php index 24d00fc..c4110a2 100644 --- a/ajax/getlinkedtags.php +++ b/ajax/getlinkedtags.php @@ -34,6 +34,8 @@ isset($_GET['uId']) ? define('GET_UID', $_GET['uId']): define('GET_UID', ''); function displayTag($tag, $uId) { + $uId = ($uId==0)?NULL:$uId; // if user is nobody, NULL allows to look for every public tags + $tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService'); $output = '{ id:'.rand().', name:\''.$tag.'\''; |