Commit 243410a0 authored by Romain Loth's avatar Romain Loth

fix double space in canonical 'firstname lastname' label if no mid name

parent 84d2aaeb
......@@ -17,7 +17,7 @@ $base = new PDO($dsn, $user, $pass, $opt);
$login = trim(strtolower($_GET['login']));
$q = "%".sanitize_input($login)."%";
$query = 'concat(first_name, " ", IFNULL(middle_name,""), " ", last_name) LIKE "%'.$q.'%"';
$query = 'concat(first_name, " ", IFNULL(concat(middle_name, " "),""), last_name) LIKE "%'.$q.'%"';
$status_constraint = "(record_status = 'active' OR (record_status = 'legacy' AND valid_date >= NOW()))";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment