diff options
author | Badlop <badlop@process-one.net> | 2015-04-08 16:34:08 +0300 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2015-04-08 16:34:08 +0300 |
commit | f129c6530c9c2e745d264240574f5ef7c4c996cc (patch) | |
tree | 8a707351677dae3e1970567f4279623c23a04f5b /src | |
parent | 32b60d4250a23d604d3b434520dc64511c5aee00 (diff) |
Fix bug when sorting the list of rooms in WebAdmin
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc_admin.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 3e659d2dc..9c69628be 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -260,7 +260,7 @@ get_sort_query(Q) -> get_sort_query2(Q) -> {value, {_, String}} = lists:keysearch(<<"sort">>, 1, Q), - Integer = list_to_integer(String), + Integer = list_to_integer(binary_to_list(String)), case Integer >= 0 of true -> {ok, {normal, Integer}}; false -> {ok, {reverse, abs(Integer)}} |