git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@19 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
commit
0701d9d4c6
1 changed files with 2 additions and 2 deletions
|
@ -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."'";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue