mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix webadmin muc room sorting broken due to trailing slash patch (#3256)
This commit is contained in:
parent
51e45516a4
commit
e5a2d42484
@ -495,7 +495,8 @@ get_sort_query(Q) ->
|
||||
|
||||
get_sort_query2(Q) ->
|
||||
{value, {_, String}} = lists:keysearch(<<"sort">>, 1, Q),
|
||||
Integer = binary_to_integer(String),
|
||||
{StringClean, _} = string:take(String, [$/], true),
|
||||
Integer = binary_to_integer(StringClean),
|
||||
case Integer >= 0 of
|
||||
true -> {ok, {normal, Integer}};
|
||||
false -> {ok, {reverse, abs(Integer)}}
|
||||
|
Loading…
Reference in New Issue
Block a user