Skip to content

Commit

Permalink
Follow up fix for #16495
Browse files Browse the repository at this point in the history
  • Loading branch information
atrol committed Oct 15, 2013
1 parent dc44f82 commit fea3c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/custom_field_api.php
Expand Up @@ -272,7 +272,7 @@ function custom_field_ensure_exists( $p_field_id ) {
*/
function custom_field_is_name_unique( $p_name, $p_custom_field_id = null ) {
$t_custom_field_table = db_get_table( 'custom_field' );
$t_$query = "SELECT COUNT(*) FROM $t_custom_field_table WHERE name=" . db_param();
$t_query = "SELECT COUNT(*) FROM $t_custom_field_table WHERE name=" . db_param();
if( $p_custom_field_id !== null ) {
$t_query .= ' AND (id <> ' . db_param() . ')';
}
Expand Down

0 comments on commit fea3c61

Please sign in to comment.