diff options
author | 2008-01-17 17:16:07 +0000 | |
---|---|---|
committer | 2008-01-17 17:16:07 +0000 | |
commit | 0701d9d4c68b46517e79f39e23a9a6e903405e8f (patch) | |
tree | a008473c908d47531607fcf21cbf2b07f7482f48 /services/tag2tagservice.php | |
parent | 288297ca4a789175faf0785240ed1661ec1c9728 (diff) | |
parent | a9232ac70a293d3c311647dbcdb139e8c649152d (diff) | |
download | scuttle-0701d9d4c68b46517e79f39e23a9a6e903405e8f.tar.gz scuttle-0701d9d4c68b46517e79f39e23a9a6e903405e8f.zip |
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@19 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/tag2tagservice.php')
-rw-r--r-- | services/tag2tagservice.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/tag2tagservice.php b/services/tag2tagservice.php index d522039..7ceb8da 100644 --- a/services/tag2tagservice.php +++ b/services/tag2tagservice.php @@ -31,14 +31,14 @@ class Tag2TagService { return true; } - function getLinkedTags($tag1, $relationType, $uId) { + function getLinkedTags($tag1, $relationType, $uId = -1) { // Set up the SQL query. $query = "SELECT DISTINCT tag2 as 'tag' FROM `". $this->getTableName() ."`"; $query.= " WHERE tag1 = '" .$tag1 ."'"; if($relationType) { $query.= " AND relationType = '". $relationType ."'"; } - if($uId) { + if($uId>0) { $query.= " AND uId = '".$uId."'"; } |