oops
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 14 Jan 2005 15:04:28 +0000 (15:04 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:34 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-320

htdocs/auth-groupex.php

index d9a07b1..f56e1cf 100644 (file)
@@ -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;
        }