From e1820c1ec66fcd38354b13263020ba7b50ce0361 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 28 Feb 2011 10:51:23 +0100 Subject: [PATCH] Fixes erroneous SQL query. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/validations/names.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/validations/names.inc.php b/include/validations/names.inc.php index ce5e818..3f00f83 100644 --- a/include/validations/names.inc.php +++ b/include/validations/names.inc.php @@ -65,7 +65,7 @@ class NamesReq extends ProfileValidate WHERE s.uid = {?} AND s.type = \'alias\' AND FIND_IN_SET(\'usage\', s.flags) AND d.name = {?}', $this->profileOwner->id(), Platal::globals()->mail->domain); if ($this->old_alias != $this->new_alias) { - $used = XDB::fetchOneCell('SELECT COUNT(s.*) + $used = XDB::fetchOneCell('SELECT COUNT(s.uid) FROM email_source_account AS s INNER JOIN email_virtual_domains AS d ON (s.domain = d.id) WHERE s.email = {?} AND d.name = {?}', -- 2.1.4