--- userpoints_basic.module.old 2007-10-26 10:20:39.000000000 +0200 +++ userpoints_basic.module 2007-11-05 11:13:28.000000000 +0100 @@ -1,6 +1,6 @@ uid, 'moderate comment'); break; - case 'form': + case 'form': $orig_uid = $comment['uid']['#value']; - case 'update': - if ($orig_uid != $comment['uid']['#value']) { + break; + case 'update': + if ($orig_uid != $comment['uid']) { // Add to the new comment owner - userpoints_userpointsapi('points', $points, $comment['uid']['#value'], 'post comment'); - + userpoints_userpointsapi('points', $points, $comment['uid'], 'post comment'); // Subtract from the original comment owner $points = -$points; userpoints_userpointsapi('points', $points, $orig_uid, 'post comment');