From: Pierre Habouzit (MadCoder Date: Fri, 14 Jan 2005 15:04:28 +0000 (+0000) Subject: oops X-Git-Tag: xorg/old~436 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a7549eeea54ed794dc0e10aa12d0821b90e56a3a;p=platal.git oops git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-320 --- diff --git a/htdocs/auth-groupex.php b/htdocs/auth-groupex.php index d9a07b1..f56e1cf 100644 --- a/htdocs/auth-groupex.php +++ b/htdocs/auth-groupex.php @@ -52,7 +52,7 @@ function gpex_make_auth($chlg, $privkey, $datafields) { if (isset($_SESSION[$val])) { $tohash .= $_SESSION[$val]; } else if ($val == 'username') { - $res = $globals->xdb->query("SELECT alias FROM aliases WHERE a.user_id = {?} AND FIND_IN_SET('bestalias', flags)", Session::getInt('uid')); + $res = $globals->xdb->query("SELECT alias FROM aliases WHERE id = {?} AND FIND_IN_SET('bestalias', flags)", Session::getInt('uid')); $min_username = $res->fetchOneCell(); $tohash .= $min_username; }