<?php
/***************************************************************************
- * Copyright (C) 2003-2013 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
FROM email_source_account
WHERE email = {?} AND type != \'alias_aux\'',
$this->new_alias);
+ if (!$used) {
+ // Check against homonyms
+ $used = XDB::fetchOneCell('SELECT COUNT(email)
+ FROM email_source_other
+ WHERE email = {?}',
+ $this->new_alias);
+ }
if ($used) {
$this->new_alias = null;
}