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
This commit is contained in:
mensonge 2009-05-05 14:00:08 +00:00
parent 64232c6197
commit 19ded06787

View 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();