From 10e7685d879bce64041f9a0028e452ba3c6dd834 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Thu, 2 Apr 2020 17:22:08 -0400 Subject: [PATCH] Update voicemails.php (#5231) --- app/voicemails/voicemails.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/voicemails/voicemails.php b/app/voicemails/voicemails.php index de309b99c2..75b0a1f3f5 100644 --- a/app/voicemails/voicemails.php +++ b/app/voicemails/voicemails.php @@ -124,6 +124,7 @@ //prepare to page the results $rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50; $param = $search ? "&search=".$search : null; + $page = is_numeric($_GET['page']) ? $_GET['page'] : 0; list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page); list($paging_controls_mini, $rows_per_page) = paging($num_rows, $param, $rows_per_page, true); $offset = $rows_per_page * $page; @@ -298,4 +299,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>