From: mensonge Date: Thu, 17 Jan 2008 17:16:07 +0000 (+0000) Subject: git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk... X-Git-Tag: v0.88~50 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0701d9d4c68b46517e79f39e23a9a6e903405e8f;p=semanticscuttle.git git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@19 b3834d28-1941-0410-a4f8-b48e95affb8f --- 0701d9d4c68b46517e79f39e23a9a6e903405e8f diff --cc services/tag2tagservice.php index d522039,d522039..7ceb8da --- a/services/tag2tagservice.php +++ b/services/tag2tagservice.php @@@ -31,14 -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."'"; }