Update provision.php
This commit is contained in:
parent
48b85fdbdf
commit
162068fabb
|
|
@ -366,7 +366,7 @@ include "root.php";
|
||||||
$sql .= "AND e.enabled = 'true' ";
|
$sql .= "AND e.enabled = 'true' ";
|
||||||
$sql .= "AND e.directory_visible = 'true' "; # TODO: not right field but it works for our district.
|
$sql .= "AND e.directory_visible = 'true' "; # TODO: not right field but it works for our district.
|
||||||
$sql .= "AND e.directory_exten_visible = 'true' "; # TODO: not right field but it works for our district.
|
$sql .= "AND e.directory_exten_visible = 'true' "; # TODO: not right field but it works for our district.
|
||||||
$sql .= "ORDER BY CASE WHEN directory_full_name LIKE '%".$contact['contact_name_given']."%' THEN 1 ELSE 2 END DESC ";
|
$sql .= "ORDER BY CASE WHEN directory_first_name LIKE '%".$contact['contact_name_given']."%' THEN 1 ELSE 2 END DESC ";
|
||||||
$prep_statement = $this->db->prepare(check_sql($sql));
|
$prep_statement = $this->db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$user_extentions = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$user_extentions = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue