|
@@ -42,6 +42,9 @@ public class UsagerController {
|
|
JSONObject data = new JSONObject();
|
|
JSONObject data = new JSONObject();
|
|
// Récupération info
|
|
// Récupération info
|
|
long total = service.getTotalNumber();
|
|
long total = service.getTotalNumber();
|
|
|
|
+ if (num < 1) {
|
|
|
|
+ num = 1;
|
|
|
|
+ }
|
|
while (total <= perPage * (num - 1)) {
|
|
while (total <= perPage * (num - 1)) {
|
|
num--;
|
|
num--;
|
|
}
|
|
}
|