|
|
@@ -47,8 +47,8 @@ td.actions{
|
|
|
function exec_ogp_module() {
|
|
|
global $db, $loggedInUserInfo;
|
|
|
|
|
|
- $page_user = isset($_GET['page']) ? $_GET['page'] : 1;
|
|
|
- $limit_user = isset($_GET['limit']) ? $_GET['limit'] : 10;
|
|
|
+ $page_user = (isset($_GET['page']) && (int)$_GET['page'] > 0) ? (int)$_GET['page'] : 1;
|
|
|
+ $limit_user = isset($_GET['limit']) ? (int)$_GET['limit'] : 10;
|
|
|
|
|
|
if(hasValue($loggedInUserInfo) && is_array($loggedInUserInfo) && $loggedInUserInfo["users_page_limit"] && !hasValue($_GET['limit'])){
|
|
|
$limit_user = $loggedInUserInfo["users_page_limit"];
|
|
|
@@ -121,4 +121,4 @@ function exec_ogp_module() {
|
|
|
echo rtrim($pagination, ",");
|
|
|
}
|
|
|
}
|
|
|
-?>
|
|
|
+?>
|