Skip to content

Commit

Permalink
Use db_query_bound instead of db_query
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis authored and davidhicks committed Sep 17, 2011
1 parent 585380a commit 28caea6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/core/custom_field_api.php
Expand Up @@ -825,6 +825,7 @@ function custom_field_get_linked_ids( $p_project_id = ALL_PROJECTS ) {

if( !isset( $g_cache_cf_linked[$p_project_id] ) ) {

$p_project_id = (int) $p_project_id;
$t_custom_field_table = db_get_table( 'custom_field' );
$t_custom_field_project_table = db_get_table( 'custom_field_project' );

Expand Down Expand Up @@ -874,7 +875,7 @@ function custom_field_get_linked_ids( $p_project_id = ALL_PROJECTS ) {
cft.id = cfpt.field_id
ORDER BY sequence ASC, name ASC";
}
$result = db_query( $query );
$result = db_query_bound( $query );
$t_row_count = db_num_rows( $result );
$t_ids = array();

Expand Down

0 comments on commit 28caea6

Please sign in to comment.