#48526, fix taxonomy for blogapi. Patch by walkah
parent
8c506a560a
commit
99e7c0ec7c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue