diff options
author | ericdane <ericdane@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-02-08 09:21:26 +0000 |
---|---|---|
committer | ericdane <ericdane@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-02-08 09:21:26 +0000 |
commit | e8e5209d51b999f0672e53b368da9046b0a219b9 (patch) | |
tree | d85c7d1a0d5b66c27b9f3a9377015d9cf0ad631d /services | |
parent | 76ba36093ff8260986a459ae449b0ac7a75fed37 (diff) | |
download | semanticscuttle-e8e5209d51b999f0672e53b368da9046b0a219b9.tar.gz semanticscuttle-e8e5209d51b999f0672e53b368da9046b0a219b9.tar.bz2 |
bug fix: bug when inserting a relation already into the base
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@35 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services')
-rw-r--r-- | services/tag2tagservice.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/tag2tagservice.php b/services/tag2tagservice.php index 1c6392e..d3a4a77 100644 --- a/services/tag2tagservice.php +++ b/services/tag2tagservice.php @@ -17,7 +17,8 @@ class Tag2TagService { function addLinkedTags($tag1, $tag2, $relationType, $uId) { if($tag1 == $tag2 || strlen($tag1) == 0 || strlen($tag2) == 0 - || ($relationType != ">" && $relationType != "=")) { + || ($relationType != ">" && $relationType != "=") + || ($this->existsLinkedTags($tag1, $tag2, $relationType, $uId))) { return false; } $values = array('tag1' => $tag1, 'tag2' => $tag2, 'relationType'=> $relationType, 'uId'=> $uId); |