This commit is contained in:
Lizandro Guarnizo
2026-04-18 13:13:34 -05:00
parent 1b441461ad
commit 8f0b28fc7c
2 changed files with 22 additions and 5 deletions
+2
View File
@@ -259,9 +259,11 @@ class Paciente {
if (str_starts_with($tel, '+')) {
$tel = ltrim($tel, '+');
}
// Sin prefijo (10 dígitos empezando por 3) → asume Colombia 57
if (strlen($tel) === 10 && str_starts_with($tel, '3')) {
$tel = '57' . $tel;
}
// Si ya trae prefijo de 2 dígitos (57xx... o 58xx...) lo respetamos
return $tel;
}
}