From 19ded067879380d954747f8ba6953679f5668e78 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 5 May 2009 14:00:08 +0000 Subject: [PATCH] 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 --- services/tag2tagservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();