Committer: ailyin
LJSUP-6630 (Editing a comment is posting a second version, not editing the first)U trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm =================================================================== --- trunk/cgi-bin/LJ/Talk.pm 2010-08-27 03:31:45 UTC (rev 17208) +++ trunk/cgi-bin/LJ/Talk.pm 2010-08-27 04:11:49 UTC (rev 17209) @@ -1387,10 +1387,10 @@ my $opts = shift; return "Invalid talkform values." unless ref $opts eq 'HASH'; - my ( $remote, $journalu, $parpost, $form, $editid ) = - map { $opts->{$_} } qw(remote journalu parpost form edit); + my ( $remote, $journalu, $parpost, $form ) = + map { $opts->{$_} } qw(remote journalu parpost form); - $editid ||= 0; + my $editid = $form->{'edit'} || 0; # early bail if the user can't be making comments yet return $LJ::UNDERAGE_ERROR