From 032544cf085201a87ddbad0b651d1aa6cb6d7e52 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 15 Mar 2005 21:18:19 +0000 Subject: - Patch #18861 by nkurz: fixed logic error in taxonomy_node_save(). (Not sure how/when it triggered.) --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') 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); } } -- cgit v1.2.3