This commit is contained in:
mensonge 2008-01-17 17:16:07 +00:00
commit 0701d9d4c6

View file

@ -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."'";
}