Update dialplans.php

This commit is contained in:
FusionPBX 2019-10-19 18:52:51 -06:00 committed by GitHub
parent 6513ed44d5
commit bf96cf2e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@
$offset = $rows_per_page * $page;
//get the list of dialplans
$sql = str_replace('count(*)', '*', $sql);
$sql = "select count(*) from v_dialplans ";
$sql .= $sql_where;
$sql .= ($order_by != '' ? order_by($order_by, $order) : 'order by dialplan_order asc, dialplan_name asc ');
$sql .= limit_offset($rows_per_page, $offset);
$database = new database;