X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fpayment%2Fmoney%2Fcyberpaiement.inc.php;h=462bae7802051885e556f46fc7845ff0d80eab11;hb=b00527ff4a4883f2bd8bdfcceb6d4123f19ef785;hp=27c034e022ce68285d485ad577284448c00522ac;hpb=0783a5ed4d3409bcd7a7e1d908696159999810c8;p=platal.git diff --git a/modules/payment/money/cyberpaiement.inc.php b/modules/payment/money/cyberpaiement.inc.php index 27c034e..462bae7 100644 --- a/modules/payment/money/cyberpaiement.inc.php +++ b/modules/payment/money/cyberpaiement.inc.php @@ -49,10 +49,8 @@ class CyberPayment $roboturl = str_replace("https://","http://", $globals->baseurl) . '/' . $platal->ns . "payment/cyber_return/".S::v('uid')."?comment=".urlencode(Env::v('comment'))."&CHAMPBPX"; - $req = XDB::query("SELECT IF(nom_usage!='', nom_usage, nom) AS nom - FROM auth_user_md5 - WHERE user_id = {?}",S::v('uid')); - $name = $req->fetchOneCell(); + $user = S::user(); + $name = $user->lastName(); // on constuit la reference de la transaction $prefix = ($pay->flags->hasflag('unique')) ? str_pad("",15,"0") : rand_url_id();