summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-05-05 14:00:08 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-05-05 14:00:08 +0000
commit19ded067879380d954747f8ba6953679f5668e78 (patch)
treef97f6f1ac4dc680f6e0aa556401bc57fa08bc036 /services
parent64232c619701f34ebca550c0423f7b6f62ee441f (diff)
downloadsemanticscuttle-19ded067879380d954747f8ba6953679f5668e78.tar.gz
semanticscuttle-19ded067879380d954747f8ba6953679f5668e78.tar.bz2
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')
-rw-r--r--services/tag2tagservice.php2
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();