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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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"];
}