Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17328: LJSUP-6641 (No payid information provide...

Committer: ailyin
LJSUP-6641 (No payid information provided for new renames)
U   trunk/cgi-bin/LJ/User/Rename.pm
Modified: trunk/cgi-bin/LJ/User/Rename.pm
===================================================================
--- trunk/cgi-bin/LJ/User/Rename.pm	2010-09-09 10:44:07 UTC (rev 17327)
+++ trunk/cgi-bin/LJ/User/Rename.pm	2010-09-09 10:57:29 UTC (rev 17328)
@@ -180,8 +180,9 @@
         );
     } else {
         my $token = $opts->{token} || "[unknown]";
+        my $payid = $opts->{'payid'} || 0;
         $dbh->do("INSERT INTO renames (token, payid, userid, fromuser, touser, rendate) ".
-             "VALUES (?,0,?,?,?,NOW())", undef, $token, $u->{'userid'}, $from, $to,
+             "VALUES (?,?,?,?,?,NOW())", undef, $token, $payid, $u->{'userid'}, $from, $to,
         );
     }
     $opts->{error} = $dbh->err if $dbh->err;

Tags: andy, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments