25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Accept 'undefined' as a language and treat it as the empty string.

SVN Revision: 1522
This commit is contained in:
Jean-Sébastien Pédron 2008-08-14 13:32:31 +00:00
parent 85c2097ece
commit 44d3e844a3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-14 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* translate.erl (ascii_tolower): Accept 'undefined' as a language and
treat it as the empty string.
2008-08-06 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/mod_offline.erl, src/mod_offline_odbc.erl, src/mod_echo.erl,

View File

@ -159,5 +159,6 @@ ascii_tolower([C | Cs]) when C >= $A, C =< $Z ->
ascii_tolower([C | Cs]) ->
[C | ascii_tolower(Cs)];
ascii_tolower([]) ->
[];
ascii_tolower(undefined) ->
[].