mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Consolidate the SQL Queries for better performance.
This commit is contained in:
@@ -743,14 +743,6 @@ include "root.php";
|
||||
}
|
||||
unset ($prep_statement);
|
||||
|
||||
//populate internal address book
|
||||
$sql = "SELECT extension as , effective_caller_id_name, effective_caller_id_number, outbound_caller_id_name, outbound_caller_id_number, directory_full_name FROM v_extensions";
|
||||
$prep_statement = $this->db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$internal_addressbook = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$view->assign("internal_addressbook",$internal_addressbook);
|
||||
unset ($prep_statement);
|
||||
|
||||
//set the mac address in the correct format
|
||||
$mac = $this->format_mac($mac, $device_vendor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user