wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r10947: LJSV-1763

Committer: gprochaev
LJSV-1763
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm	2011-08-31 09:24:20 UTC (rev 10946)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm	2011-08-31 09:34:00 UTC (rev 10947)
@@ -117,16 +117,16 @@
     my $u = LJ::load_userid($args{u});
     return undef unless $u;
 
-    my $subitem = $self->{subitem};
-    my ($uh_id) = $subitem =~ m#uh-(\d+)#;
+    my $item = $self->{item};
+    my ($uh_id) = $item =~ m#uh-(\d+)#;
     my $uh = LJ::UserHead->get_userhead ($uh_id);
     if ($uh && ($uh->get_uh_img eq $u->custom_usericon)) {
         $u->set_custom_usericon (undef);
     }
-    
+ 
     # Drop this item from the list
     my $dbh = _get_dbh();
-    $dbh->do("DELETE FROM paidexp where userid=? AND item=?", undef, $u->userid, $self->{subitem});
+    $dbh->do("DELETE FROM paidexp where userid=? AND item=?", undef, $u->userid, $self->{item});
 }
 
 sub _delivering_message {

Tags: ljcom, pm, wisest-owl
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