Fix search command page number
This commit is contained in:
parent
a61d3b3fd4
commit
da23b6ea9a
@ -58,9 +58,9 @@ public class SearchCommand extends SingleCommand {
|
|||||||
String query = args.get(0);
|
String query = args.get(0);
|
||||||
|
|
||||||
int page = 1;
|
int page = 1;
|
||||||
if (args.size() > 0) {
|
if (args.size() > 1) {
|
||||||
try {
|
try {
|
||||||
page = Integer.parseInt(args.get(0));
|
page = Integer.parseInt(args.get(1));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
// ignored
|
// ignored
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user