From 42600062c671acc1083fe901ee5ec9f84348f661 Mon Sep 17 00:00:00 2001 From: akulikov Date: Wed, 21 Jan 2009 14:53:40 +0000 Subject: [PATCH] bonus for phone confirmation git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@50 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Format.class.php | 3 +++ 1 file changed, 3 insertions(+) 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 '';