Closed (fixed)
Project:
User Points
Version:
master
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
12 Apr 2009 at 06:14 UTC
Updated:
26 Apr 2009 at 08:40 UTC
When you go to "My Account" page, the "Points" is always zero. I found it is caused by one bug in userpoins.module at 1779:
/*
* Wrapper function to return the default tid via API call
*/
function userpoints_get_default_tid() {
variable_get(USERPOINTS_CATEGORY_DEFAULT_TID, NULL);
}
Apparently, it needs a "return". The correct code should be as the following:
When you go to "My Account" page, the "Points" is always zero. I found it is caused by one bug in userpoins.module at 1779:
/*
* Wrapper function to return the default tid via API call
*/
function userpoints_get_default_tid() {
return variable_get(USERPOINTS_CATEGORY_DEFAULT_TID, NULL);
}
Comments
Comment #1
jredding commentedThis was fixed in the dev version, a new stable version will be released soon. Thanks for pointing it out though.