Commit 5ad49fee authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Minor fix.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5087 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3c345dc2
......@@ -58,7 +58,7 @@ public class GetListActiveUsers extends AdHocCommand {
public void execute(SessionData data, Element command) {
String max_items = data.getData().get("max_items").get(0);
int maxItems = -1;
if (max_items != null && "none".equals(maxItems)) {
if (max_items != null && "none".equals(max_items)) {
try {
maxItems = Integer.parseInt(max_items);
}
......
......@@ -60,7 +60,7 @@ public class GetUsersPresence extends AdHocCommand {
public void execute(SessionData data, Element command) {
String max_items = data.getData().get("max_items").get(0);
int maxItems = -1;
if (max_items != null && "none".equals(maxItems)) {
if (max_items != null && "none".equals(max_items)) {
try {
maxItems = Integer.parseInt(max_items);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment