diff --git a/classes/Format.class.php b/classes/Format.class.php index bfed71a..86078e3 100644 --- a/classes/Format.class.php +++ b/classes/Format.class.php @@ -147,6 +147,9 @@ class Format $phone = str_replace(array(' ','-','(',')'), '', $phone); $phone_length = strlen($phone); if (is_numeric($phone) && ($phone_length == 7 || $phone_length == 10)) { //бывают семизначные прямые номера + if ($phone_length == 7) { + $phone = '495'.$phone; + } return $phone; } return '';