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:
parent
64232c6197
commit
19ded06787
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ class Tag2TagService {
|
||||||
function removeLinkedTags($tag1, $tag2, $relationType, $uId) {
|
function removeLinkedTags($tag1, $tag2, $relationType, $uId) {
|
||||||
if(($tag1 != '' && $tag1 == $tag2) ||
|
if(($tag1 != '' && $tag1 == $tag2) ||
|
||||||
($relationType != ">" && $relationType != "=" && $relationType != "") ||
|
($relationType != ">" && $relationType != "=" && $relationType != "") ||
|
||||||
($tag1 == '' && $tag2 == '' && $relationType == '' && $uId == '')) {
|
($tag1 == '' && $tag2 == '')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$query = 'DELETE FROM '. $this->getTableName();
|
$query = 'DELETE FROM '. $this->getTableName();
|
||||||
|
|
Loading…
Reference in a new issue