Commit 99e7c0ec authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#48526, fix taxonomy for blogapi. Patch by walkah

parent 8c506a56
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment