diff --git a/views/configuracion/editar.php b/views/configuracion/editar.php index 8e130d2..a45719d 100644 --- a/views/configuracion/editar.php +++ b/views/configuracion/editar.php @@ -255,7 +255,7 @@ include __DIR__ . '/../partials/sidebar_configuracion.php'; } // Validación Fax - if (!/^\d{3} \d{3} \d{4}$/.test(fax)) { + if (fax !== '' && !/^\d{3} \d{3} \d{4}$/.test(fax)) { errores.push('El número de fax debe tener el formato: 123 456 7890.'); }