aboutsummaryrefslogtreecommitdiff
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 a2d7ac3..d19b097 100644
--- a/services/tag2tagservice.php
+++ b/services/tag2tagservice.php
@@ -18,10 +18,11 @@ class Tag2TagService {
function addLinkedTags($tag1, $tag2, $relationType, $uId) {
$tagservice =& ServiceFactory::getServiceInstance('TagService');
$tag1 = $tagservice->normalize($tag1);
- $tag2 = $tagservice->normalize($tag2);
+ $tag2 = $tagservice->normalize($tag2);
if($tag1 == $tag2 || strlen($tag1) == 0 || strlen($tag2) == 0
|| ($relationType != ">" && $relationType != "=")
+ || !is_numeric($uId) || $uId<=0
|| ($this->existsLinkedTags($tag1, $tag2, $relationType, $uId))) {
return false;
}