X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fhomonymes.inc.php;h=52060e283c136386052cfa12bba3ddcb9b8df221;hb=3d01af442f218fc776ee91905412894716fd5ac6;hp=dd592f0d0e3f58562521a5e8bd85c8f0b04e5b0d;hpb=1d55fe45fa148bbe6209f82f97d19dcd26455eeb;p=platal.git diff --git a/include/homonymes.inc.php b/include/homonymes.inc.php index dd592f0..52060e2 100644 --- a/include/homonymes.inc.php +++ b/include/homonymes.inc.php @@ -1,6 +1,6 @@ fetchOneCell(); if ($bestalias && $bestalias != $loginbis) return false; - + // select the shortest alias still alive $res = XDB::query("SELECT alias FROM aliases WHERE id = {?} AND alias != {?} AND expire IS NULL ORDER BY LENGTH(alias) LIMIT 1", $uid, $loginbis); $newbest = $res->fetchOneCell();