summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-11 17:57:37 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-11 17:57:37 +0000
commit99e7c0ec7c630dde981cb5ee7c046e71833cfd50 (patch)
tree092760d20785430738ffbc2dff3c99d31afea468
parent8c506a560a57c715ca19ec85f21416d980439827 (diff)
downloadbrdo-99e7c0ec7c630dde981cb5ee7c046e71833cfd50.tar.gz
brdo-99e7c0ec7c630dde981cb5ee7c046e71833cfd50.tar.bz2
#48526, fix taxonomy for blogapi. Patch by walkah
-rw-r--r--modules/taxonomy.module3
-rw-r--r--modules/taxonomy/taxonomy.module3
2 files changed, 6 insertions, 0 deletions
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);
}
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 35bd0e613..896053039 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);
}