summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-03-15 21:18:19 +0000
committerDries Buytaert <dries@buytaert.net>2005-03-15 21:18:19 +0000
commit032544cf085201a87ddbad0b651d1aa6cb6d7e52 (patch)
tree0316bdff0d56e354b1d0a57427bfcb5f7758ce76
parent2919df0e081748214d582f16f3232813323dc474 (diff)
downloadbrdo-032544cf085201a87ddbad0b651d1aa6cb6d7e52.tar.gz
brdo-032544cf085201a87ddbad0b651d1aa6cb6d7e52.tar.bz2
- Patch #18861 by nkurz: fixed logic error in taxonomy_node_save().
(Not sure how/when it triggered.)
-rw-r--r--modules/taxonomy.module2
-rw-r--r--modules/taxonomy/taxonomy.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 6059c1e11..9227db223 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -504,7 +504,7 @@ function taxonomy_node_save($nid, $terms) {
}
}
}
- if ($term) {
+ else if ($term) {
db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $nid, $term);
}
}
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 6059c1e11..9227db223 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -504,7 +504,7 @@ function taxonomy_node_save($nid, $terms) {
}
}
}
- if ($term) {
+ else if ($term) {
db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $nid, $term);
}
}