]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Bug fix: prevent deleting all links between tags
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 5 May 2009 14:00:08 +0000 (14:00 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 5 May 2009 14:00:08 +0000 (14:00 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@320 b3834d28-1941-0410-a4f8-b48e95affb8f

services/tag2tagservice.php

index 6069880ee17242a60838d5ac4a50efbc83581aba..b2ffbf08567df0a88513ddae6e7a4f0e31e70575 100644 (file)
@@ -287,7 +287,7 @@ class Tag2TagService {
        function removeLinkedTags($tag1, $tag2, $relationType, $uId) {
                if(($tag1 != '' && $tag1 == $tag2) ||
                ($relationType != ">" && $relationType != "=" && $relationType != "") ||
-               ($tag1 == '' && $tag2 == '' && $relationType == '' && $uId == '')) {
+               ($tag1 == '' && $tag2 == '')) {
                        return false;
                }
                $query = 'DELETE FROM '. $this->getTableName();