From: Stéphane Jacob Date: Mon, 28 Feb 2011 09:51:23 +0000 (+0100) Subject: Fixes erroneous SQL query. X-Git-Tag: xorg/1.1.0~102 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e1820c1ec66fcd38354b13263020ba7b50ce0361;p=platal.git Fixes erroneous SQL query. Signed-off-by: Stéphane Jacob --- 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 = {?}',