Update call_recordings.php (#4959)

This commit is contained in:
chansizzle
2019-12-18 20:16:10 -07:00
committed by FusionPBX
parent 5e3556e618
commit 39b8ac3486

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2018
Portions created by the Initial Developer are Copyright (C) 2018-2019
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -117,10 +117,12 @@
//prepare to page the results
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_REQUEST['page'];
if (strlen($page) == 0) { $page = 0; $_REQUEST['page'] = 0; }
list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
if (isset($_GET['page'])) {
$page = $_REQUEST['page'];
if (strlen($page) == 0) { $page = 0; $_REQUEST['page'] = 0; }
list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page);
$offset = $rows_per_page * $page;
}
//get the list
$sql = "select * from v_call_recordings ";