From 99e7c0ec7c630dde981cb5ee7c046e71833cfd50 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Tue, 11 Apr 2006 17:57:37 +0000 Subject: #48526, fix taxonomy for blogapi. Patch by walkah --- modules/taxonomy.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/taxonomy.module') diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 35bd0e613..896053039 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); } -- cgit v1.2.3