Update paging.php (#5279)

fix Notice: Undefined variable: max_page
This commit is contained in:
chansizzle 2020-05-15 16:24:00 -06:00 committed by GitHub
parent 54a804c9f0
commit 329fc04f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -77,7 +77,10 @@ function paging($num_rows, $param, $rows_per_page, $mini = false, $result_count
if ($num_rows > 0) {
$max_page = ceil($num_rows/$rows_per_page);
}
else {
$max_page = 1;
}
//add multi-lingual support
$language = new text;
$text = $language->get();
@ -188,4 +191,4 @@ function paging($num_rows, $param, $rows_per_page, $mini = false, $result_count
}
?>
?>