Closed (fixed)
Project:
Profile Taxonomy
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2010 at 14:27 UTC
Updated:
1 Dec 2010 at 13:10 UTC
The function
function profile_taxonomy_get_vocabulary_id($field) {
$sql = "SELECT * FROM {profile_taxonomy} WHERE fid = '%s'";
return db_fetch_object(db_query($sql, $field))->vid;
}
issues an error that the input syntax for integer is illegal.
The following change solves the problem for PostgreSQL and hopefully doesn't harm MySQL-installations.
function profile_taxonomy_get_vocabulary_id($field) {
$sql = "SELECT * FROM {profile_taxonomy} WHERE fid = %d";
return db_fetch_object(db_query($sql, $field))->vid;
}
Regards
Conni
Comments
Comment #1
gnindl commentedThankx. Commited to repository.