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