Near the end of spam_tokens_unsave I think there's a typo ($probility):

      // updating an existing token
      $total = $new->spam + $new->notspam;
      if ($total == 0) {
        $probability = 0;
      }
      else {
        $probility = ($new->spam / $total) * 100;
        $probability = spam_get_probability($probability);
      }
CommentFileSizeAuthor
#4 spamtypo.txt584 bytesnancydru

Comments

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Active » Needs review

Patch is included in http://drupal.org/node/175080

jeremy’s picture

Please keep patches self-contained. Do not bunch multiple fixes together in one issue, as it becomes a headache to review anything. One fix per issue.

Ideally, submit a tiny patch for this issue (or I'll fix it manually, as it's obviously a bug), and then fix your patch in the other issue to only address that issue.

nancydru’s picture

Status: Needs review » Active

I was there anyway. But I backed it out of the other patch. It's a simple one liner.

nancydru’s picture

Status: Active » Needs review
StatusFileSize
new584 bytes

Patch is to the Oct 18 code.

jeremy’s picture

Status: Needs review » Fixed

Ugly typo. Thanks Nancy, fix applied.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.