X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofil.func.inc.php;h=61b0356ed06641a41d5f31df1d378e7b9ab7b201;hb=bf52ec4e8de2e1c22020f7fffbf543ab4ee7f41a;hp=4e332e208c1cab873bbfdaa345aafe7b8c79b27c;hpb=9891bd15f772caef0c199a98f036e976bf4ab94a;p=platal.git diff --git a/include/profil.func.inc.php b/include/profil.func.inc.php index 4e332e2..61b0356 100644 --- a/include/profil.func.inc.php +++ b/include/profil.func.inc.php @@ -1,6 +1,6 @@ '','phon $ret = ''; $tel_length = strlen($tel); if((!isset($format['phoneprf'])) || ($format['phoneprf'] == '')) { - $res = XDB::query("SELECT phoneprf, phoneformat AS format - FROM geoloc_pays - WHERE phoneprf = {?} OR phoneprf = {?} OR phoneprf = {?} + $res = XDB::query("SELECT phonePrefix AS phoneprf, phoneFormat AS format + FROM geoloc_countries + WHERE phonePrefix = {?} OR phonePrefix = {?} OR phonePrefix = {?} LIMIT 1", substr($tel, 0, 1), substr($tel, 0, 2), substr($tel, 0, 3)); if ($res->numRows() == 0) {