projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix networking display on profiles
[platal.git]
/
include
/
profil.func.inc.php
diff --git
a/include/profil.func.inc.php
b/include/profil.func.inc.php
index
4e332e2
..
61b0356
100644
(file)
--- a/
include/profil.func.inc.php
+++ b/
include/profil.func.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-103,7
+103,7
@@
function same_field(&$a, &$b) {
if (!isset($b[$val]) || !same_field($avar, $b[$val])) return false;
return true;
} elseif (is_string($a))
if (!isset($b[$val]) || !same_field($avar, $b[$val])) return false;
return true;
} elseif (is_string($a))
- return (
strtoupper($a) ==
strtoupper($b));
+ return (
mb_strtoupper($a) == mb_
strtoupper($b));
}
function diff_user_tel(&$a, &$b) {
$c = $a;
}
function diff_user_tel(&$a, &$b) {
$c = $a;
@@
-314,9
+314,9
@@
function format_display_number($tel, &$error, $format = array('format'=>'','phon
$ret = '';
$tel_length = strlen($tel);
if((!isset($format['phoneprf'])) || ($format['phoneprf'] == '')) {
$ret = '';
$tel_length = strlen($tel);
if((!isset($format['phoneprf'])) || ($format['phoneprf'] == '')) {
- $res = XDB::query("SELECT phone
prf, phonef
ormat AS format
- FROM geoloc_
pay
s
- WHERE phone
prf = {?} OR phoneprf = {?} OR phoneprf
= {?}
+ $res = XDB::query("SELECT phone
Prefix AS phoneprf, phoneF
ormat AS format
+ FROM geoloc_
countrie
s
+ WHERE phone
Prefix = {?} OR phonePrefix = {?} OR phonePrefix
= {?}
LIMIT 1",
substr($tel, 0, 1), substr($tel, 0, 2), substr($tel, 0, 3));
if ($res->numRows() == 0) {
LIMIT 1",
substr($tel, 0, 1), substr($tel, 0, 2), substr($tel, 0, 3));
if ($res->numRows() == 0) {