X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fhomonymes.inc.php;h=7144c91a7a1d9603d410fed02731961e61176671;hb=87d72675e4a6d5e2ca377cde0f30666f6305ad2b;hp=10663c51843b55efc829abe84ff4bb7321bc0c6a;hpb=8d84c630f353ef0534e02325507ed35cc2f0d28f;p=platal.git diff --git a/include/validations/homonymes.inc.php b/include/validations/homonymes.inc.php index 10663c5..7144c91 100644 --- a/include/validations/homonymes.inc.php +++ b/include/validations/homonymes.inc.php @@ -1,6 +1,6 @@ user->id(), $this->loginbis); + Platal::load('admin', 'homonyms.inc.php'); + switch_bestalias($this->user, $this->loginbis); if (!$this->warning) { XDB::execute("UPDATE aliases SET type = 'homonyme', expire = NOW() WHERE alias = {?}", $this->loginbis); - XDB::execute("REPLACE INTO homonymes (homonyme_id, user_id) VALUES({?}, {?})", $this->user->id(), $this->user->id()); + XDB::execute("REPLACE INTO homonyms (homonyme_id, uid) VALUES({?}, {?})", $this->user->id(), $this->user->id()); } return true;