Update provision.php

Prevent a warning on the provisioning class.
This commit is contained in:
FusionPBX
2016-11-30 20:50:17 -07:00
committed by GitHub
parent db1dfd13b9
commit f14f2fe57d

View File

@@ -779,7 +779,7 @@ include "root.php";
//set the variables
$types = array("line", "memory", "expansion", "programmable");
foreach ($types as $type) {
if (is_array($device_keys)) {
if (is_array($device_keys[$type])) {
foreach($device_keys[$type] as $row) {
//set the variables
$device_key_category = $row['device_key_category'];