bonus for phone confirmation

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@50 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
akulikov
2009-01-21 14:53:40 +00:00
parent da7b1aa076
commit 42600062c6

View File

@ -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 '';