Hi Ted. That didn't work.
After I went thru your codes a few times, I understood what is going on.
I have placed the code on line 881 instead of 945.
Also, I had to change it a bit as it is not correct.
Code:
$post['goodrank'] = (int) ($post['goodrank']);
@others: to fix this, go to your admincp > plugin manager >
find this plug in: Helpful Answers -- Check if user can rate thread
click edit
on line 58, insert the above code.