Closed (fixed)
Project:
User Points
Version:
6.x-1.x-dev
Component:
Code: userpoints API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Apr 2010 at 17:55 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
barrya commentedI too noticed this. If you look at line 1714(approx) - the bit that calculates the pending points you will see the following.
Replace the above with the following and it will fix it.
The reason it was not working is that when you call db_result() it will set the pointer to the next entry in the mysql result object. Unlike the drupal 5 api, you are not able to specify the row to check on db_result().
Comment #2
berdirPlease provide that as a patch, thanks!
Comment #3
berdirActually, the whole thing can be written in a single line...
Comment #4
berdirTagging to make it easier to find patches like this one.
Comment #5
berdirCommited.
Comment #6
berdirCommited.