]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 17 Jan 2008 17:16:07 +0000 (17:16 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 17 Jan 2008 17:16:07 +0000 (17:16 +0000)
1  2 
services/tag2tagservice.php

index d522039a02b5f607a004618d62eb39fa62db3263,d522039a02b5f607a004618d62eb39fa62db3263..7ceb8da8ad67d8441bc02e9939717d6d7f3372be
@@@ -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."'";
        }