aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-01-17 17:16:07 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-01-17 17:16:07 +0000
commit0701d9d4c68b46517e79f39e23a9a6e903405e8f (patch)
treea008473c908d47531607fcf21cbf2b07f7482f48
parent288297ca4a789175faf0785240ed1661ec1c9728 (diff)
parenta9232ac70a293d3c311647dbcdb139e8c649152d (diff)
downloadsemanticscuttle-0701d9d4c68b46517e79f39e23a9a6e903405e8f.tar.gz
semanticscuttle-0701d9d4c68b46517e79f39e23a9a6e903405e8f.tar.bz2
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@19 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--services/tag2tagservice.php4
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."'";
}