The $codes array in phone_country_code_convert() is declared static, it is then flipped depending on the flag $Input_type. This causes the flag to work completely opposite second time it's called.
Tiny patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | phone-country-code-convert-1988762-2.patch | 823 bytes | msmithcti |
Comments
Comment #1
msmithcti commentedComment #2
roderik+1 to this, but it's also fixed in #2108707: Improved parsing of international numbers. (That's why I haven't tested this patch separately.)
Comment #3
damienmckennaLets close this in favor of #2108707: Improved parsing of international numbers.