X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Finsert.getUserName.php;h=cacb67a9cfda63af751140fe490ae0cf8664bc47;hb=84868ee91abd0f01c9ca7811e37c346ae79972ed;hp=78d494721227c92b18ac1d1c3c2512926aa784a3;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/plugins/insert.getUserName.php b/plugins/insert.getUserName.php index 78d4947..cacb67a 100644 --- a/plugins/insert.getUserName.php +++ b/plugins/insert.getUserName.php @@ -40,7 +40,7 @@ function smarty_insert_getUsername() FROM virtual AS v INNER JOIN virtual_redirect USING(vid) INNER JOIN aliases AS a ON(id={?} AND a.type='a_vie') - WHERE redirect = CONCAT(a.alias, {?}) + WHERE redirect = CONCAT(a.alias, {?}) OR redirect = CONCAT(a.alias, {?})", $id, "@".$globals->mail->domain, "@".$globals->mail->domain2); $alias = $res->fetchOneCell(); @@ -50,4 +50,5 @@ function smarty_insert_getUsername() return $login; } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>