Fixed an error in a query

This commit is contained in:
Alejandro Gallardo Escobar 2016-05-05 18:26:41 +02:00
parent 142d544ef1
commit 5616429f9e
1 changed files with 2 additions and 2 deletions

View File

@ -2431,8 +2431,8 @@ function agents_get_agent_custom_field ($agent_id, $custom_field_name) {
INNER JOIN tagent_custom_fields tacf
ON tacd.id_field = tacf.id_field
AND tacf.name LIKE '%s'
WHERE tacd.id_agent = %d
LIMIT 1", $custom_field_name, $agent_id);
WHERE tacd.id_agent = %d",
$custom_field_name, $agent_id);
return db_get_value_sql($sql);
}