#48526, fix taxonomy for blogapi. Patch by walkah

4.7.x
Gerhard Killesreiter 2006-04-11 17:57:37 +00:00
parent 8c506a560a
commit 99e7c0ec7c
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}