X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofil.func.inc.php;h=171a616b22f8108c753008f909714b3fd0fed433;hb=950a769bb3f3154de64960ffc5cac111263bc8b0;hp=24d5b7e58727dc265b0ac09bfa9fb42f7bf602e9;hpb=7706cc73e140d7a154136cf1e6836091a25c69c5;p=platal.git diff --git a/include/profil.func.inc.php b/include/profil.func.inc.php index 24d5b7e..171a616 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) {