diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 35bd0e61333..896053039d0 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -786,6 +786,9 @@ function taxonomy_node_save($nid, $terms) { } } } + else if (is_object($term)) { + db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $nid, $term->tid); + } 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 35bd0e61333..896053039d0 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -786,6 +786,9 @@ function taxonomy_node_save($nid, $terms) { } } } + else if (is_object($term)) { + db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $nid, $term->tid); + } else if ($term) { db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $nid, $term); }