Fix query.
authorFlorent Bruneau <florent.bruneau@intersec.com>
Sun, 27 Mar 2011 14:32:33 +0000 (16:32 +0200)
committerFlorent Bruneau <florent.bruneau@intersec.com>
Sun, 27 Mar 2011 14:32:33 +0000 (16:32 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
modules/auth/auth.inc.php

index a443af8..feed3d9 100644 (file)
@@ -64,7 +64,7 @@ function gpex_make($chlg, $privkey, $datafields, $charset)
         } else if ($val == 'username') {
             $min_username = XDB::fetchOneCell('SELECT  email
                                                  FROM  email_source_account
-                                                WHERE  uid = {?} FIND_IN_SET(\'bestalias\', flags)',
+                                                WHERE  uid = {?} AND FIND_IN_SET(\'bestalias\', flags)',
                                               S::i('uid'));
             $params      .= gpex_prepare_param($val, $min_username, $tohash, $charset);
         } else if ($val == 'grpauth') {