ZenCart v1.3.7 full-patched

I noticed the customers' telephone min lenght is not correctly taken in account
(that is I can insert even a number shorter than min lenght)

I solved the problem by applying at line 410 of admin/customers.php an explicit type cast before the comparison

original code:
Code:
if (customers_telephone == "" || customers_telephone.length < <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>) {
code after:
Code:
if (customers_telephone == "" || customers_telephone.length < (int) <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>) {
Always happy to be of help to the ZenCart community.

Regards!
Daniele Nicotra