Correct mistyping error

Replaced the undefined variable $f with the current loyalty $item.
Merge pull request #3 from shaffe-fr/patch-1

Correct mistyping error