summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/tag2tagservice.php3
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);