Update provision.php

Allow the key variables to work for memory, expansion and programmable keys.
This commit is contained in:
FusionPBX 2016-09-02 10:08:45 -06:00 committed by GitHub
parent d68e292e0f
commit 8f7665c2d8
1 changed files with 70 additions and 67 deletions

View File

@ -754,7 +754,9 @@ include "root.php";
$view->assign("keys", $device_keys);
//set the variables
foreach($device_keys['line'] as $row) {
$types = array("line", "memory", "expansion", "programmable");
foreach ($types as $type) {
foreach($device_keys[$type] as $row) {
//set the variables
$device_key_category = $row['device_key_category'];
$device_key_id = $row['device_key_id']; //1
@ -825,6 +827,7 @@ include "root.php";
$view->assign($device_key_category."_key_label_".$device_key_id, $device_key_label);
}
}
}
unset ($prep_statement);
//set the mac address in the correct format