X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Finsert.getUserName.php;h=cacb67a9cfda63af751140fe490ae0cf8664bc47;hb=787bb3d745141f2f85bd947ad7dd775d2c63f908;hp=fc17ee89b169144f83f705fcb020f5463b256999;hpb=8b00e0e0c6f303762f6740c853e7065b1471d245;p=platal.git diff --git a/plugins/insert.getUserName.php b/plugins/insert.getUserName.php index fc17ee8..cacb67a 100644 --- a/plugins/insert.getUserName.php +++ b/plugins/insert.getUserName.php @@ -1,6 +1,6 @@ fetchOneCell(); @@ -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: ?>