mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix version check
Not all Erlang versions are of equal length. Added clauses to handle this.
This commit is contained in:
parent
807a1fe164
commit
3e2f9dc6b0
@ -50,6 +50,10 @@ parse(Version) ->
|
||||
|
||||
less_or_equal([[]], [[]]) ->
|
||||
true;
|
||||
less_or_equal([[]], _Any) ->
|
||||
true;
|
||||
less_or_equal(_Any, [[]]) ->
|
||||
false;
|
||||
less_or_equal([[Left| Rl]], [[Right| Rr]]) ->
|
||||
case {Left < Right, Left == Right} of
|
||||
{true, _} ->
|
||||
|
Loading…
Reference in New Issue
Block a user