Update ring_group_forward.php (#4970)

This commit is contained in:
chansizzle
2019-12-18 20:13:47 -07:00
committed by FusionPBX
parent 8daca7cee7
commit a05f09ee36
+8 -6
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2013-2017 Portions created by the Initial Developer are Copyright (C) 2013-2019
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@@ -132,10 +132,12 @@
//prepare to page the results //prepare to page the results
$rows_per_page = $is_included ? 10 : (is_numeric($_SESSION['domain']['paging']['numeric']) ? $_SESSION['domain']['paging']['numeric'] : 50); $rows_per_page = $is_included ? 10 : (is_numeric($_SESSION['domain']['paging']['numeric']) ? $_SESSION['domain']['paging']['numeric'] : 50);
$param = ""; $param = "";
$page = $_GET['page']; if (isset($_GET['page'])) {
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } $page = $_GET['page'];
list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page); if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
$offset = $rows_per_page * $page; list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
}
//get the list //get the list
if (permission_exists('ring_group_add') || permission_exists('ring_group_edit')) { if (permission_exists('ring_group_add') || permission_exists('ring_group_edit')) {
@@ -232,4 +234,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
} }
?> ?>