diff options
author | 2009-05-05 14:00:08 +0000 | |
---|---|---|
committer | 2009-05-05 14:00:08 +0000 | |
commit | 19ded067879380d954747f8ba6953679f5668e78 (patch) | |
tree | f97f6f1ac4dc680f6e0aa556401bc57fa08bc036 /services/tag2tagservice.php | |
parent | 64232c619701f34ebca550c0423f7b6f62ee441f (diff) | |
download | scuttle-19ded067879380d954747f8ba6953679f5668e78.tar.gz scuttle-19ded067879380d954747f8ba6953679f5668e78.zip |
Bug fix: prevent deleting all links between tags
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@320 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/tag2tagservice.php')
-rw-r--r-- | services/tag2tagservice.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/tag2tagservice.php b/services/tag2tagservice.php index 6069880..b2ffbf0 100644 --- a/services/tag2tagservice.php +++ b/services/tag2tagservice.php @@ -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(); |