Skip to content
Snippets Groups Projects
Commit 7c5d117d authored by Alex Barth's avatar Alex Barth
Browse files

#870278 budda: Fix SQL query in taxonomy_get_term_by_name_vid().

parent af0ad176
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
Feeds 6.x xxxxxxxxxxxxxxxxxxxxxx
--------------------------------
- #870278 budda: Fix SQL query in taxonomy_get_term_by_name_vid().
- #795114 budda, alex_b: Taxonomy term processor doesn't require vocabulary to
be set.
......
......@@ -131,7 +131,7 @@ function taxonomy_feeds_set_target(&$node, $key, $terms) {
* An array of matching term objects.
*/
function taxonomy_get_term_by_name_vid($name, $vid) {
$db_result = db_query(db_rewrite_sql("SELECT t.tid, t.name FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s') AND vid=%d", 't', 'tid'), trim($name), $vid);
$db_result = db_query(db_rewrite_sql("SELECT t.tid, t.name FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s') AND t.vid = %d", 't', 'tid'), trim($name), $vid);
$result = array();
while ($term = db_fetch_object($db_result)) {
$result[] = $term;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment