Update the array name so that is_array evaluates to true.

This commit is contained in:
FusionPBX
2020-12-14 17:31:41 -07:00
committed by GitHub
parent 131d96b60c
commit dc8f9146ba

View File

@@ -579,7 +579,7 @@
$sql .= "dialplan_order asc ";
$database = new database;
$results = $database->select($sql, $parameters, 'all');
if (is_array($result) && @sizeof($result) != 0) {
if (is_array($results) && @sizeof($results) != 0) {
foreach ($results as $row) {
$dialplans[$row["dialplan_uuid"]] = $row["dialplan_xml"];
}