From 5cfb3dd10421468779a740595b3e5e68aba9838e Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 27 Mar 2011 16:32:33 +0200 Subject: [PATCH] Fix query. Signed-off-by: Florent Bruneau --- modules/auth/auth.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auth/auth.inc.php b/modules/auth/auth.inc.php index a443af8..feed3d9 100644 --- a/modules/auth/auth.inc.php +++ b/modules/auth/auth.inc.php @@ -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') { -- 2.1.4